Skip to content

Commit

Permalink
feat(taiko_miner): remove an unnecessary check (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed May 8, 2024
1 parent 6cc43e1 commit 974b338
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions miner/taiko_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,6 @@ func (w *worker) sealBlockWith(
env.gasPool = new(core.GasPool).AddGas(gasLimit)

for i, tx := range txs {
if tx.ChainId().Cmp(w.chainConfig.ChainID) != 0 {
if i == 0 {
return nil, fmt.Errorf("anchor tx with invalid chain id, expected: %v, actual: %v", w.chainConfig.ChainID, tx.ChainId())
} else {
log.Debug("Skip an proposed transaction with invalid chain id", "hash", tx.Hash(), "expect", w.chainConfig.ChainID, "actual", tx.ChainId())
continue
}
}

if i == 0 {
if err := tx.MarkAsAnchor(); err != nil {
return nil, err
Expand Down

0 comments on commit 974b338

Please sign in to comment.