Purge zero lamport accounts on snapshot ingestion (#7010)

Snapshots do not load the original index, so they must
purge zero lamport accounts again.
This commit is contained in:
sakridge
2019-11-22 18:22:28 -08:00
committed by GitHub
parent f040987c9f
commit 6c89226ccf
3 changed files with 90 additions and 7 deletions

View File

@ -168,6 +168,12 @@ mod tests {
let tx =
system_transaction::transfer(&mint_keypair, &key1, 1, bank.last_blockhash());
assert_eq!(bank.process_transaction(&tx), Ok(()));
let key2 = Keypair::new().pubkey();
let tx =
system_transaction::transfer(&mint_keypair, &key2, 0, bank.last_blockhash());
assert_eq!(bank.process_transaction(&tx), Ok(()));
bank.freeze();
},
1,