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
5de4e0808b
commit
0ff5477430
@ -430,7 +430,7 @@ func (sc *SendersCache) fromDB(ctx context.Context, tx, coreTx kv.Tx) error {
|
||||
/*TODO: tx.ForEach must be implemented as buffered server-side stream*/
|
||||
encNum := make([]byte, 8)
|
||||
diff := map[string]senderInfo{}
|
||||
binary.BigEndian.PutUint64(encNum, sc.blockHeight.Load()-1024)
|
||||
binary.BigEndian.PutUint64(encNum, sc.blockHeight.Load()-10*1024)
|
||||
logEvery := time.NewTicker(10 * time.Second)
|
||||
defer logEvery.Stop()
|
||||
if err := coreTx.ForEach(kv.AccountChangeSet, encNum, func(k, v []byte) error {
|
||||
|
Loading…
Reference in New Issue
Block a user