MCPcopy Create free account
hub / github.com/CPChain/chain / TrieNode

Method TrieNode

core/blockchain.go:775–777  ·  view source on GitHub ↗

TrieNode retrieves a blob of data associated with a trie node (or code hash) either from ephemeral in-memory cache, or from persistent storage.

(hash common.Hash)

Source from the content-addressed store, hash-verified

773// TrieNode retrieves a blob of data associated with a trie node (or code hash)
774// either from ephemeral in-memory cache, or from persistent storage.
775func (bc *BlockChain) TrieNode(hash common.Hash) ([]byte, error) {
776 return bc.stateCache.TrieDB().Node(hash)
777}
778
779// Stop stops the blockchain service. If any imports are currently in progress
780// it will abort them using the procInterrupt.

Callers

nothing calls this directly

Calls 1

TrieDBMethod · 0.65

Tested by

no test coverage detected