mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-20 17:31:11 +00:00
[erigon2] Fix rebuild state (#386)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
This commit is contained in:
parent
8c4a3df7f1
commit
26a8c3c571
@ -1093,7 +1093,7 @@ func NewAggregator(diffDir string, unwindLimit uint64, aggregationStep uint64, c
|
|||||||
func (a *Aggregator) rebuildRecentState() error {
|
func (a *Aggregator) rebuildRecentState() error {
|
||||||
t := time.Now()
|
t := time.Now()
|
||||||
var err error
|
var err error
|
||||||
a.changesBtree.Descend(func(i btree.Item) bool {
|
a.changesBtree.Ascend(func(i btree.Item) bool {
|
||||||
item := i.(*ChangesItem)
|
item := i.(*ChangesItem)
|
||||||
for fType := FirstType; fType < NumberOfStateTypes; fType++ {
|
for fType := FirstType; fType < NumberOfStateTypes; fType++ {
|
||||||
var changes Changes
|
var changes Changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user