chore: improve docs (#6702)

This commit is contained in:
Matthias Seitz
2024-02-21 02:07:21 +01:00
committed by GitHub
parent 2f3c3089bc
commit 2eef0dc1a5

View File

@@ -991,10 +991,9 @@ where
results.push(f(tx_info, inspector, result, &state, &db)?);
// need to apply the state changes of this transaction before executing the
// next transaction
// next transaction, but only if there's a next transaction
if transactions.peek().is_some() {
// need to apply the state changes of this transaction before executing
// the next transaction
// commit the state changes to the DB
db.commit(state)
}
}