Zero lamport accounts are not stored in accounts-db: https://github.com/solana-labs/solana/blob/7b5835ddf/runtime/src/accounts_db.rs#L5007-L5014 https://github.com/solana-labs/solana/blob/7b5835ddf/runtime/src/accounts_db.rs#L4481-L4483 However, in order to purge the account from cache, stakes cache update partially relies on accounts data to be also zeroed out : https://github.com/solana-labs/solana/blob/7b5835ddf/runtime/src/bank.rs#L3471-L3478 This can be error-prone and introduce inconsistency between accounts-db and vote/stake cache. This commit instead explicitly removes accounts from cache if lamports == 0. |
||
---|---|---|
.. | ||
benches | ||
src | ||
store-tool | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |