fix: Keep LoanBrokerDelete valid for auth-required MPT cover (#8144)

This commit is contained in:
Vito Tumas
2026-09-01 14:40:53 +00:00
committed by GitHub
parent b2453b626e
commit ccd5dc5e06
3 changed files with 125 additions and 4 deletions

View File

@@ -215,6 +215,13 @@ class ValidMPTTransfer
// Deleted MPToken
// MPToken key: true if MPTAuthorized is set
hash_map<uint256, bool> deletedAuthorized_;
// Every touched AccountRoot (not only pseudos):
// AccountID -> whether it was a pseudo-account BEFORE this transaction
// applied. Needed because a transaction may erase a pseudo-account and
// move MPT out of it in the same transaction; by finalize() time the
// view no longer shows it as a pseudo-account (or as existing at all).
// False entries freeze the pre-tx classification for touched non-pseudos.
hash_map<AccountID, bool> pseudoAccountsBefore_;
public:
/**