From be7760caa1725020290a25023046772c7b5dc733 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Wed, 2 Dec 2020 11:32:23 -0700 Subject: [PATCH] accounts: Replace nonce_rollback unreachable block with descriptive panic --- runtime/src/accounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts.rs b/runtime/src/accounts.rs index 2c4f7b9c53..09c1cd03a6 100644 --- a/runtime/src/accounts.rs +++ b/runtime/src/accounts.rs @@ -860,7 +860,7 @@ impl Accounts { (false, true, Some((_, _, Some(fee_payer_account)))) => { *account = fee_payer_account.clone(); } - _ => unreachable!(), + _ => panic!("unexpected nonce_rollback condition"), } } if account.rent_epoch == 0 {