ensure that XahauGenesis amendment will effectively disable DeletableAccounts

This commit is contained in:
Richard Holland
2023-08-15 10:38:51 +00:00
parent b19feb4dd4
commit e5bf299e39
10 changed files with 36 additions and 14 deletions

View File

@@ -1221,8 +1221,11 @@ Import::doApply()
{
// Create the account.
std::uint32_t const seqno{
view().rules().enabled(featureDeletableAccounts) ? view().seq()
: 1};
view().rules().enabled(featureDeletableAccounts) &&
!view().rules().enabled(featureXahauGenesis)
? view().seq()
: 1};
sle = std::make_shared<SLE>(keylet::account(id));
sle->setAccountID(sfAccount, id);