some notes about the p2p layer

This commit is contained in:
Ethan Buchman
2018-03-20 21:41:08 +01:00
parent 0cbbb61962
commit 936d1a0e68
6 changed files with 105 additions and 30 deletions

View File

@ -47,6 +47,8 @@ func NetInfo() (*ctypes.ResultNetInfo, error) {
ConnectionStatus: peer.Status(),
})
}
// TODO: should we include "num_peers" field for convenience ?
// Let's also include the PersistentPeers and Seeds in here.
return &ctypes.ResultNetInfo{
Listening: listening,
Listeners: listeners,