ChainSafe / ChainSafe/gossamer

(pkg/trie): Replace unnecesary panics to errors

Open
#3,942 0 comments 0 reactions 1 assignee Claimed by @dimartiro View on GitHub
S-trie T-refactor
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

We had to introduce some panics while working on lazy loading trie to simplify the implementation and prevent a bigger refactor.

We should replace those panics to errors to handle the errors gracefully

More context [here](https://github.com/ChainSafe/gossamer/pull/3884#discussion_r1580606568)

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.