mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
persistence
This commit is contained in:
parent
9e6631df29
commit
53cc635d5c
@ -1437,7 +1437,7 @@ func (p *WorstQueue) Pop() interface{} {
|
||||
// promote/demote transactions
|
||||
// reorgs
|
||||
func BroadcastLoop(ctx context.Context, db kv.RwDB, coreDB kv.RoDB, p *TxPool, senders *SendersCache, newTxs chan Hashes, send *Send, timings Timings) {
|
||||
db.Update(ctx, func(tx kv.RwTx) error { return tx.ClearBucket(kv.PooledSender) })
|
||||
//db.Update(ctx, func(tx kv.RwTx) error { return tx.ClearBucket(kv.PooledSender) })
|
||||
if err := db.View(ctx, func(tx kv.Tx) error {
|
||||
return coreDB.View(ctx, func(coreTx kv.Tx) error {
|
||||
return p.fromDB(ctx, tx, coreTx, senders)
|
||||
|
Loading…
Reference in New Issue
Block a user