Skip to content

Commit

Permalink
ethclient: delete check empty tx root hash
Browse files Browse the repository at this point in the history
  • Loading branch information
ian committed Aug 23, 2021
1 parent 436ed45 commit bb0e439
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface
if head.UncleHash != types.EmptyUncleHash && len(body.UncleHashes) == 0 {
return nil, fmt.Errorf("server returned empty uncle list but block header indicates uncles")
}
if head.TxHash == types.EmptyRootHash && len(body.Transactions) > 0 {
return nil, fmt.Errorf("server returned non-empty transaction list but block header indicates no transactions")
}
if head.TxHash != types.EmptyRootHash && len(body.Transactions) == 0 {
return nil, fmt.Errorf("server returned empty transaction list but block header indicates transactions")
}
Expand Down

0 comments on commit bb0e439

Please sign in to comment.