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
3c847202cd
commit
1da85f4dc9
@ -1019,7 +1019,9 @@ func (p *TxPool) fromDB(ctx context.Context, tx kv.RwTx, coreTx kv.Tx, senders *
|
|||||||
panic(err)
|
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].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])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user