Skip to content

Commit

Permalink
feat(consensus): update taiko consensus engine (ethereum#56)
Browse files Browse the repository at this point in the history
* feat(consensus): update taiko consensus engine

* tmp

* feat: update consensus

* chore: update genesis
  • Loading branch information
davidtaikocha authored Apr 27, 2023
1 parent c36ae0f commit 6118f4a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
6 changes: 5 additions & 1 deletion consensus/taiko/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
var (
ErrOlderBlockTime = errors.New("timestamp older than parent")
ErrUnclesNotEmpty = errors.New("uncles not empty")
ErrEmptyBasefee = errors.New("empty base fee")
)

// Taiko is a consensus engine used by L2 rollup.
Expand Down Expand Up @@ -155,7 +156,10 @@ func (t *Taiko) verifyHeader(chain consensus.ChainHeaderReader, header, parent *
return ErrUnclesNotEmpty
}

// TODO: check baseFee when EIP-1559 is enabled.
// BaseFee should not be empty
if header.BaseFee == nil {
return ErrEmptyBasefee
}

return nil
}
Expand Down
Loading

0 comments on commit 6118f4a

Please sign in to comment.