[P2P] Add interface to get network information of server itself.
@@ -9,8 +9,12 @@ import (
// PeerAccessor is an interface for a another actor module to get info of peers
type PeerAccessor interface {
+ // SelfMeta returns peerid, ipaddress and port of server itself
+ SelfMeta() PeerMeta
+
GetPeerBlockInfos() []types.PeerBlockInfo
GetPeer(ID types.PeerID) (RemotePeer, bool)
+
}
type SyncManager interface {
