diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 24356d0fd5..7be58a6077 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -162,9 +162,7 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface if head.UncleHash != types.EmptyUncleHash && len(body.UncleHashes) == 0 { return nil, errors.New("server returned empty uncle list but block header indicates uncles") } - if head.TxHash == types.EmptyTxsHash && len(body.Transactions) > 0 { - return nil, errors.New("server returned non-empty transaction list but block header indicates no transactions") - } + if head.TxHash != types.EmptyTxsHash && len(body.Transactions) == 0 { return nil, errors.New("server returned empty transaction list but block header indicates transactions") }