Skip to content

Commit

Permalink
[light-node] fix trie usage without storage
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Jul 8, 2024
1 parent b95c38c commit 4df5e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewTrie(root []byte, hash func(data ...[]byte) []byte, store db.DB) *Trie {
hash: hash,
TrieHeight: len(hash([]byte("height"))) * 8, // hash any string to get output length
counterOn: false,
lightNode: store.Type() == "deldeldb",
lightNode: store != nil && store.Type() == "deldeldb",
}
s.db = &CacheDB{
liveCache: make(map[Hash][][]byte),
Expand Down

0 comments on commit 4df5e9a

Please sign in to comment.