Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/types: fix EmptyBody
Browse files Browse the repository at this point in the history
buddh0 committed Mar 28, 2024
1 parent e8d2366 commit bb3eb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/block.go
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ func (h *Header) SanityCheck() error {
// that is: no transactions, no uncles and no withdrawals.
func (h *Header) EmptyBody() bool {
if h.WithdrawalsHash != nil {
return h.TxHash == EmptyTxsHash && *h.WithdrawalsHash == EmptyWithdrawalsHash
return h.TxHash == EmptyTxsHash && (*h.WithdrawalsHash == EmptyWithdrawalsHash || *h.WithdrawalsHash == common.Hash{})
}
return h.TxHash == EmptyTxsHash && h.UncleHash == EmptyUncleHash
}

0 comments on commit bb3eb43

Please sign in to comment.