Skip to content

Commit

Permalink
fix relaced tx cost
Browse files Browse the repository at this point in the history
  • Loading branch information
abelliumnt authored and pandainzoo committed May 22, 2024
1 parent a16aca1 commit 3c17af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
// Deduct the cost of a transaction replaced by this
replCost := repl.Cost()
if replL1Cost := pool.l1CostFn(repl.RollupDataGas(), repl.IsDepositTx(), repl.To()); replL1Cost != nil { // add rollup cost
replCost = replCost.Add(cost, replL1Cost)
replCost = replCost.Add(replCost, replL1Cost)
}
replMetaTxParams, err := types.DecodeAndVerifyMetaTxParams(repl,
pool.chainconfig.IsMetaTxV2(pool.chain.CurrentBlock().Time),
Expand Down

0 comments on commit 3c17af4

Please sign in to comment.