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:
@ -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,
|
||||
|
Reference in New Issue
Block a user