mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 10:21:37 +00:00
add p.chainConfig != nil to fix test error
This commit is contained in:
parent
65924d6884
commit
155da48d55
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue