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

Function AcceptRightSibling

mtree/branch.go:33–40  ·  view source on GitHub ↗
(b *BranchNode, h NodeData)

Source from the content-addressed store, hash-verified

31}
32
33func AcceptRightSibling(b *BranchNode, h NodeData) *BranchNode {
34 return &BranchNode{
35 Hash: nil,
36 Right: &BranchNode{h, nil, nil, false},
37 Left: b,
38 ElementOnTheLeft: true,
39 }
40}

Callers 1

insertNodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected