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
b0d24509ac
commit
b8b6f5d6a3
@ -772,6 +772,9 @@ func (b *ByNonce) delete(mt *metaTx) {
|
||||
}
|
||||
}
|
||||
func (b *ByNonce) replaceOrInsert(mt *metaTx) *metaTx {
|
||||
if ASSERT && (mt == nil || mt.Tx == nil || mt.Tx.senderID == 0) {
|
||||
panic("must never happen")
|
||||
}
|
||||
it := b.tree.ReplaceOrInsert(&sortByNonce{mt})
|
||||
if it != nil {
|
||||
return it.(*sortByNonce).metaTx
|
||||
|
Loading…
Reference in New Issue
Block a user