LNP-WG / lnp-node

Lightning network protocol daemon (suitable for generalized Lightning Network)
MIT License
145 stars 40 forks source link

Create peer service #1

Closed dr-orlovsky closed 4 years ago

dr-orlovsky commented 4 years ago

Using https://github.com/LNP-BP/lnpd/blob/master/src/service.rs, in similar way to https://github.com/LNP-BP/txserv/blob/master/txparserd/src/parser/runtime.rs

Peer service must run a thread for each peer connection.

It might be useful to do https://github.com/LNP-BP/rust-lnpbp/issues/21 first

NB: There might be multiple connections to the same peer