Manage durable nonce stored value in runtime (#7684) (#7760)

automerge
This commit is contained in:
mergify[bot]
2020-01-10 17:11:47 -08:00
committed by Grimes
parent 5b006eba57
commit a92855c995
4 changed files with 269 additions and 33 deletions

View File

@@ -64,7 +64,7 @@ impl TransactionStatusService {
.zip(balances.post_balances)
{
if Bank::can_commit(&status) && !transaction.signatures.is_empty() {
let fee_hash = if let Some(HashAgeKind::DurableNonce) = hash_age_kind {
let fee_hash = if let Some(HashAgeKind::DurableNonce(_, _)) = hash_age_kind {
bank.last_blockhash()
} else {
transaction.message().recent_blockhash