Set EffectiveAmount and EffectiveLoadAmount of forged L1UserTxs

This commit is contained in:
Eduard S
2020-11-30 15:51:31 +01:00
parent a8c9b7a604
commit 665e0829ec
6 changed files with 155 additions and 9 deletions

View File

@@ -261,7 +261,7 @@ func (l2db *L2DB) CheckNonces(updatedAccounts []common.Account, batchNum common.
return tracerr.Wrap(err)
}
}
return txn.Commit()
return tracerr.Wrap(txn.Commit())
}
// Reorg updates the state of txs that were updated in a batch that has been discarted due to a blockchain reorg.
@@ -312,5 +312,5 @@ func (l2db *L2DB) Purge(currentBatchNum common.BatchNum) (err error) {
if err != nil {
return tracerr.Wrap(err)
}
return txn.Commit()
return tracerr.Wrap(txn.Commit())
}