From 155da48d556c3a14bf9b8414204307e93702b7d9 Mon Sep 17 00:00:00 2001 From: healthykim Date: Thu, 19 Mar 2026 02:46:00 +0900 Subject: [PATCH] add p.chainConfig != nil to fix test error --- eth/protocols/eth/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go index c8853fa0ce..b75a8c5fda 100644 --- a/eth/protocols/eth/peer.go +++ b/eth/protocols/eth/peer.go @@ -531,7 +531,7 @@ func (p *Peer) validateLastBlockReceipt(receiptLists []*ReceiptList, id uint64, // Verify that the total number of transactions delivered is under the limit. var minTxGas uint64 - if p.chainConfig.AmsterdamTime != nil && *p.chainConfig.AmsterdamTime <= timestamp { + if p.chainConfig != nil && p.chainConfig.AmsterdamTime != nil && *p.chainConfig.AmsterdamTime <= timestamp { minTxGas = 4500 } else { minTxGas = 21000