mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
add state check assert routine
This commit is contained in:
parent
cf015aeb8f
commit
ff451545d9
@ -913,6 +913,13 @@ func (p *TxPool) OnNewTxs(ctx context.Context, coreDB kv.RoDB, newTxs TxSlots, s
|
||||
return err
|
||||
}
|
||||
|
||||
if ASSERT {
|
||||
for i := range p.senders.senderIDs {
|
||||
if bytes.Equal([]byte(i), EmptyAddr[:]) {
|
||||
panic(8)
|
||||
}
|
||||
}
|
||||
}
|
||||
protocolBaseFee, pendingBaseFee := p.protocolBaseFee.Load(), p.pendingBaseFee.Load()
|
||||
if protocolBaseFee == 0 || pendingBaseFee == 0 {
|
||||
return fmt.Errorf("non-zero base fee: %d,%d", protocolBaseFee, pendingBaseFee)
|
||||
|
Loading…
Reference in New Issue
Block a user