MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / Copy

Method Copy

mtree/merkle_tree.go:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func (n node) Copy() node {
18 return node{n.Data.Copy(), n.NodeCount, &map[uint32]BranchTree{}}
19}
20
21type hashFunc func(NodeData, NodeData) NodeData
22type elementHashFunc func(ElementData) NodeData

Callers

nothing calls this directly

Calls 1

CopyMethod · 0.65

Tested by

no test coverage detected