accounts: Replace nonce_rollback unreachable block with descriptive panic

This commit is contained in:
Trent Nelson
2020-12-02 11:32:23 -07:00
committed by mergify[bot]
parent 47af5933ca
commit be7760caa1

View File

@ -860,7 +860,7 @@ impl Accounts {
(false, true, Some((_, _, Some(fee_payer_account)))) => { (false, true, Some((_, _, Some(fee_payer_account)))) => {
*account = fee_payer_account.clone(); *account = fee_payer_account.clone();
} }
_ => unreachable!(), _ => panic!("unexpected nonce_rollback condition"),
} }
} }
if account.rent_epoch == 0 { if account.rent_epoch == 0 {