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

Method Commit

core/state/database.go:67–67  ·  view source on GitHub ↗
(onleaf trie.LeafCallback)

Source from the content-addressed store, hash-verified

65 TryUpdate(key, value []byte) error
66 TryDelete(key []byte) error
67 Commit(onleaf trie.LeafCallback) (common.Hash, error)
68 Hash() common.Hash
69 NodeIterator(startKey []byte) trie.NodeIterator
70 GetKey([]byte) []byte // TODO(fjl): remove this when SecureTrie is removed

Callers 15

GenerateChainFunction · 0.65
SetupGenesisBlockFunction · 0.65
ToBlockMethod · 0.65
CommitStateDBMethod · 0.65
WriteBlockWithStateMethod · 0.65
testBlockChainImportFunction · 0.65
CommitMethod · 0.65
TestDumpMethod · 0.65
TestNullMethod · 0.65
TestSnapshot2Function · 0.65
CommitTrieMethod · 0.65
CommitMethod · 0.65

Calls

no outgoing calls

Tested by 15

testBlockChainImportFunction · 0.52
TestDumpMethod · 0.52
TestNullMethod · 0.52
TestSnapshot2Function · 0.52
TestIntermediateLeaksFunction · 0.52
TestTouchDeleteMethod · 0.52
makeTestStateFunction · 0.52
testIterativeStateSyncFunction · 0.52
TestIncompleteStateSyncFunction · 0.52