MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewNode

Function NewNode

proto/nodeinfo.go:123–125  ·  view source on GitHub ↗

NewNode just return a new node struct.

()

Source from the content-addressed store, hash-verified

121
122// NewNode just return a new node struct.
123func NewNode() *Node {
124 return &Node{}
125}
126
127// Difficulty returns NodeID difficulty, returns -1 on length mismatch or any error.
128func (id *NodeID) Difficulty() (difficulty int) {

Callers 11

TestMarshalNodeFunction · 0.92
TestStartBP_CallRPCFunction · 0.92
GetAllNodeInfoMethod · 0.92
TestEncPingFindNeighborFunction · 0.92
TestCaller_CallNodeFunction · 0.92
TestNewPersistentCallerFunction · 0.92
TestDHTService_PingFunction · 0.85

Calls

no outgoing calls

Tested by 10

TestMarshalNodeFunction · 0.74
TestStartBP_CallRPCFunction · 0.74
TestEncPingFindNeighborFunction · 0.74
TestCaller_CallNodeFunction · 0.74
TestNewPersistentCallerFunction · 0.74
TestDHTService_PingFunction · 0.68