Changed RPC methods. Changed Network interface.
* Nodes/Topology removed from public methods from Network interface * Peers() returns max depth 3 topology * handler.Topology rpc endpoint removed * handler.Peers rpc endpoint accept "depth" param to return max depth peers
This commit is contained in:
@@ -809,16 +809,6 @@ func (n *network) Connect() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Nodes returns a list of all network nodes
|
||||
func (n *network) Nodes() []Node {
|
||||
return n.node.Nodes()
|
||||
}
|
||||
|
||||
// Topology returns network topology
|
||||
func (n *network) Topology() Node {
|
||||
return n.node.Topology(MaxDepth)
|
||||
}
|
||||
|
||||
func (n *network) close() error {
|
||||
// stop the server
|
||||
if err := n.server.Stop(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user