* Deinitialize nonce data upon zero balance (cherry picked from commit3881ae10fb) * vote: Add helper for creating current-versioned states (cherry picked from commit5b903318b2) * Deinitialize vote data upon zero balance (cherry picked from commitdb5bd6ea1a) * Deinitialize stake data upon zero balance (cherry picked from commit50710473a8) Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
@@ -204,6 +204,8 @@ impl Accounts {
|
||||
})? {
|
||||
SystemAccountKind::System => 0,
|
||||
SystemAccountKind::Nonce => {
|
||||
// Should we ever allow a fees charge to zero a nonce account's
|
||||
// balance. The state MUST be set to uninitialized in that case
|
||||
rent_collector.rent.minimum_balance(nonce::State::size())
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user