Skip to content

Commit

Permalink
fix: missing epochMaps init
Browse files Browse the repository at this point in the history
  • Loading branch information
asyukii committed Oct 19, 2023
1 parent e98a619 commit a1a0d4d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions trie/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ type syncMemBatch struct {
// newSyncMemBatch allocates a new memory-buffer for not-yet persisted trie nodes.
func newSyncMemBatch() *syncMemBatch {
return &syncMemBatch{
nodes: make(map[string][]byte),
hashes: make(map[string]common.Hash),
codes: make(map[common.Hash][]byte),
nodes: make(map[string][]byte),
hashes: make(map[string]common.Hash),
codes: make(map[common.Hash][]byte),
epochMaps: make(map[string][16]types.StateEpoch),
}
}

Expand Down

0 comments on commit a1a0d4d

Please sign in to comment.