From 1da85f4dc945019d7ad0504ee0c8b3eeda028454 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 26 Aug 2021 18:00:19 +0700 Subject: [PATCH] don't load everything on start --- txpool/pool.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/txpool/pool.go b/txpool/pool.go index a67329a34..155caf71b 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -1019,7 +1019,9 @@ func (p *TxPool) fromDB(ctx context.Context, tx kv.RwTx, coreTx kv.Tx, senders * panic(err) return fmt.Errorf("err: %w, rlp: %x\n", err, v[8+8:]) } + txs.txs[i].rlp = nil txs.txs[i].senderID = binary.BigEndian.Uint64(v) + senderAddr, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8]) if err != nil { return err