add p.chainConfig != nil to fix test error

This commit is contained in:
healthykim 2026-03-19 02:46:00 +09:00
parent 65924d6884
commit 155da48d55

View file

@ -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