Skip to content

Commit

Permalink
fix: fix dump revert issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lredhdx committed Dec 24, 2024
1 parent e034bc5 commit a7f7530
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,6 @@ func (s *StateDB) RevertToSnapshot(revid int) {
return s.validRevisions[i].id >= revid
})
if idx == len(s.validRevisions) || s.validRevisions[idx].id != revid {
log.Info("idx ", idx)
log.Info("validRevisions length ", len(s.validRevisions))
log.Info("validRevisions[idx].id ", s.validRevisions[idx].id)
log.Info("revid ", revid)
panic(fmt.Errorf("revision id %v cannot be reverted", revid))
}
snapshot := s.validRevisions[idx].journalIndex
Expand Down
2 changes: 0 additions & 2 deletions miner/worker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ func (w *worker) simulateBundle(
// for unRevertible tx but itself can be dropped, we drop it and revert the state and gas pool
if containsHash(bundle.DroppingTxHashes, receipt.TxHash) {
log.Warn("drop tx in bundle", "hash", receipt.TxHash.String())
state.RevertToSnapshot(snap)
gasPool.SetGas(gp)
bundle.Txs = bundle.Txs.Remove(i)
txsLen = len(bundle.Txs)
i--
Expand Down

0 comments on commit a7f7530

Please sign in to comment.