mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
add state check assert routine
This commit is contained in:
parent
57e84d56c3
commit
a7f6d54571
@ -17,6 +17,7 @@
|
||||
package txpool
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
@ -315,6 +316,13 @@ func (f *Fetch) handleInboundMessage(ctx context.Context, req *sentry.InboundMes
|
||||
if len(txs.txs) == 0 {
|
||||
return nil
|
||||
}
|
||||
if ASSERT {
|
||||
for i := 0; i < txs.senders.Len(); i++ {
|
||||
if bytes.Equal(txs.senders.At(i), EmptyAddr[:]) {
|
||||
panic("here")
|
||||
}
|
||||
}
|
||||
}
|
||||
return f.pool.OnNewTxs(ctx, f.coreDB, txs, f.senders)
|
||||
default:
|
||||
//defer log.Info("dropped", "id", req.Id)
|
||||
|
Loading…
Reference in New Issue
Block a user