solana/runtime
behzad nouri 3fff34a65f
explicitly removes accounts with zero lamports from stakes cache (#25015)
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.
2022-05-06 14:04:49 +00:00
..
benches allow ledger-tool halt at slot to calc hash using write cache (#24974) 2022-05-04 16:27:49 -05:00
src explicitly removes accounts with zero lamports from stakes cache (#25015) 2022-05-06 14:04:49 +00:00
store-tool chore: bump log from 0.4.16 to 0.4.17 (#24987) 2022-05-05 01:49:18 +00:00
tests Make stake integration tests aware of stake minimum delegation (#24809) 2022-04-28 18:11:39 -05:00
.gitignore
Cargo.toml chore: bump im from 15.0.0 to 15.1.0 (#24992) 2022-05-05 05:48:05 +00:00
build.rs