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

Function NewNodeIterator

core/state/iterator.go:47–51  ·  view source on GitHub ↗

NewNodeIterator creates an post-order state node iterator.

(state *StateDB)

Source from the content-addressed store, hash-verified

45
46// NewNodeIterator creates an post-order state node iterator.
47func NewNodeIterator(state *StateDB) *NodeIterator {
48 return &NodeIterator{
49 state: state,
50 }
51}
52
53// Next moves the iterator to the next node, returning whether there are any
54// further nodes. In case of an internal error this method returns false and

Callers 2

TestNodeIteratorCoverageFunction · 0.85
checkStateConsistencyFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNodeIteratorCoverageFunction · 0.68
checkStateConsistencyFunction · 0.68