don't load everything on start

This commit is contained in:
alex.sharov 2021-08-26 18:00:19 +07:00
parent 3c847202cd
commit 1da85f4dc9

View File

@ -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