ChainSafe / ChainSafe/gossamer

trie: inject database and load from database when decoding a root node

Open
#2,375 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Task summary

With #2369 we now handle inline-encoded nodes when decoding. We should move the load-from-database logic in the same decode functions to make it clearer, instead of reporting the node populating downstream. This should make it clearer and simplify the Go API.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.