spacemeshos / api

Protobuf implementation of the Spacemesh API
MIT License
14 stars 8 forks source link

P2pService #140

Open lrettig opened 3 years ago

lrettig commented 3 years ago

It would be helpful to have a P2pService (or PeerService, or NetService) with features such as:

avive commented 3 years ago

Why not just add p2p functions to the NodeService? p2p is a node sub-components. We already have many services... It fits well in there especially since the Node service is designed to only be provided by a node that can be managed by the api client process. e.g. a local node managed via cliwallet, smapp or any other grpc client.

lrettig commented 3 years ago

Yes, that could work too