accounts: Replace nonce_rollback unreachable block with descriptive panic
This commit is contained in:
committed by
mergify[bot]
parent
47af5933ca
commit
be7760caa1
@ -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 {
|
||||||
|
Reference in New Issue
Block a user