From e6a39ce9fce4c216bb926f3267d1fbfaafe9be01 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 27 Aug 2021 16:32:31 +0700 Subject: [PATCH] add state check assert routine --- txpool/pool.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index c2b68584c..4dc4127d1 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -637,25 +637,6 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce, sendersWithoutTransa } encIDs = append(encIDs, encID...) } - if ASSERT { - tx.ForEach(kv.PooledTransaction, nil, func(k, v []byte) error { - vv, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8]) - if err != nil { - return err - } - if len(vv) == 0 { - tx.ForEach(kv.PooledSenderIDToAdress, nil, func(k, vvvv []byte) error { - if bytes.HasPrefix(k, v[:7]) { - fmt.Printf("found:%x,%x\n", k, vvvv) - } - return nil - }) - fmt.Printf("aa: %x,%x,%x\n", k, v, vv) - panic("no-no") - } - return nil - }) - } sc.senderIDs = map[string]uint64{}