mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 12:01:20 +00:00
don't load everything on start
This commit is contained in:
parent
66f4f6880f
commit
1d9c9aa1bf
@ -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)
|
_, err := parseCtx.ParseTransaction(v[8+8:], 0, txs.txs[i], nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
|
||||||
return fmt.Errorf("err: %w, rlp: %x\n", err, v[8+8:])
|
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)
|
txs.txs[i].senderID = binary.BigEndian.Uint64(v)
|
||||||
|
|
||||||
senderAddr, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8])
|
senderAddr, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8])
|
||||||
|
Loading…
Reference in New Issue
Block a user