Flesh out the peer handling skeleton within peer/server

This commit is contained in:
Olaoluwa Osuntokun committed 2016-01-14 23:58:04 -08:00
1 parent 07b0d5ca3e
commit 0c304cbb2f
3 files changed
+285 -13

No files matched your search

+5
View File
@@ -38,6 +38,11 @@ func newRpcServer(wallet *lnwallet.LightningWallet) *rpcServer {
make(chan []byte)} // init OmniChan (size 1 ok...?)
}
// Stop...
func (r *rpcServer) Stop() error {
return nil
}
// getPriv gets the identity private key out of the wallet DB
func getPriv(l *lnwallet.LightningWallet) (*btcec.PrivateKey, error) {
adr, err := l.ChannelDB.GetIdAdr()