From fbc32aa9b13af321c888881371ce9d16a9166d7d Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 3 Apr 2025 15:36:58 +0200 Subject: [PATCH] eth: fixup --- eth/api_backend.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eth/api_backend.go b/eth/api_backend.go index 7cd6676036..b39dd4cbdb 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -155,8 +155,7 @@ func (b *EthAPIBackend) BlockByNumber(ctx context.Context, number rpc.BlockNumbe bn = b.HistoryPruningCutoff() } block := b.eth.blockchain.GetBlockByNumber(bn) - historyCutoff, _ := b.eth.blockchain.HistoryPruningCutoff() - if block == nil && bn < historyCutoff { + if block == nil && bn < b.HistoryPruningCutoff() { return nil, ðconfig.PrunedHistoryError{} } return block, nil