From 1d9c9aa1bfbd614921ec9c6cc7edaeb2e82810c1 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 26 Aug 2021 18:08:03 +0700 Subject: [PATCH] don't load everything on start --- txpool/pool.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index 6d3c63407..99ef3e3e7 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -1015,10 +1015,9 @@ func (p *TxPool) fromDB(ctx context.Context, tx kv.RwTx, coreTx kv.Tx, senders * _, err := parseCtx.ParseTransaction(v[8+8:], 0, txs.txs[i], nil) if err != nil { - panic(err) return fmt.Errorf("err: %w, rlp: %x\n", err, v[8+8:]) } - txs.txs[i].rlp = nil + txs.txs[i].rlp = nil // means that we don't need store it in db anymore txs.txs[i].senderID = binary.BigEndian.Uint64(v) senderAddr, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8])