github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/chain/trie/errors.go (about)

     1  package trie
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/neatio-net/neatio/utilities/common"
     7  )
     8  
     9  type MissingNodeError struct {
    10  	NodeHash common.Hash
    11  	Path     []byte
    12  }
    13  
    14  func (err *MissingNodeError) Error() string {
    15  	return fmt.Sprintf("missing trie node %x (path %x)", err.NodeHash, err.Path)
    16  }