MCPcopy Create free account
hub / github.com/DNAProject/DNA / peerPool

Function peerPool

consensus/vbft/node_utils_test.go:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33)
34
35func peerPool() *PeerPool {
36 nodeId := "120202c924ed1a67fd1719020ce599d723d09d48362376836e04b0be72dfe825e24d81"
37 peerconfig := &vconfig.PeerConfig{
38 Index: 1,
39 ID: nodeId,
40 }
41 peerpool := constructPeerPool(false)
42 peerpool.addPeer(peerconfig)
43 return peerpool
44}
45
46func constructServer() *Server {
47 statemgr := &StateMgr{

Callers 8

TestIsPeerAliveFunction · 0.85
TestIsPeerActiveFunction · 0.85
TestIsProposerFunction · 0.85
TestIs2ndProposerFunction · 0.85
TestIsEndorserFunction · 0.85
TestIsCommitterFunction · 0.85

Calls 2

constructPeerPoolFunction · 0.85
addPeerMethod · 0.80

Tested by

no test coverage detected