Skip to content

Commit fbc32aa

Browse files
committed
eth: fixup
1 parent 0ce8fe3 commit fbc32aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eth/api_backend.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ func (b *EthAPIBackend) BlockByNumber(ctx context.Context, number rpc.BlockNumbe
155155
bn = b.HistoryPruningCutoff()
156156
}
157157
block := b.eth.blockchain.GetBlockByNumber(bn)
158-
historyCutoff, _ := b.eth.blockchain.HistoryPruningCutoff()
159-
if block == nil && bn < historyCutoff {
158+
if block == nil && bn < b.HistoryPruningCutoff() {
160159
return nil, &ethconfig.PrunedHistoryError{}
161160
}
162161
return block, nil

0 commit comments

Comments
 (0)