diff --git a/consensus/taiko/consensus.go b/consensus/taiko/consensus.go index 3ec5255c134d..7aae5929abfe 100644 --- a/consensus/taiko/consensus.go +++ b/consensus/taiko/consensus.go @@ -229,12 +229,14 @@ func (t *Taiko) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *t // Verify anchor transaction if len(body.Transactions) != 0 { // Transactions list might be empty when building empty payload. - isAnchor, err := t.ValidateAnchorTx(body.Transactions[0], header) - if err != nil { - return nil, err - } - if !isAnchor { - return nil, ErrAnchorTxNotFound + if body.Transactions[0].IsAnchor() { + isAnchor, err := t.ValidateAnchorTx(body.Transactions[0], header) + if err != nil { + return nil, err + } + if !isAnchor { + return nil, ErrAnchorTxNotFound + } } }