pkg/trie/trie_tools.go
Method Trie.get
has 6 return statements (exceeds 4 allowed). Open
Open
func (s *Trie) get(root, key []byte, batch [][]byte, iBatch, height int) ([]byte, error) {
if len(root) == 0 {
// the trie does not contain the key
return nil, nil
}
Method Trie.loadCache
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Trie) loadCache(root []byte, batch [][]byte, iBatch, height int, ch chan<- (error)) {
if height < s.CacheHeightLimit || len(root) == 0 {
ch <- nil
return
}