MCPcopy
hub / github.com/canopy-network/canopy / newNode

Function newNode

store/smt.go:1058–1062  ·  view source on GitHub ↗

NODE CODE BELOW newNode() is a constructor for the node object

()

Source from the content-addressed store, hash-verified

1056
1057// newNode() is a constructor for the node object
1058func newNode() (n *node) {
1059 n = new(node)
1060 n.Key = new(key)
1061 return
1062}
1063
1064// bytes() returns the marshalled node
1065func (x *node) bytes() ([]byte, lib.ErrorI) {

Callers 5

TestSetFunction · 0.85
TestDeleteFunction · 0.85
TestNewSMTFunction · 0.85
setMethod · 0.85
getNodeMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestSetFunction · 0.68
TestDeleteFunction · 0.68
TestNewSMTFunction · 0.68