rpcserver: add REST workarounds, implement new RPC calls

This commit adds a few workarounds in order to concurrently support the
REST proxy as well as the regular gRPC interface. Additionally,
concrete support for the following RPC calls has been added:
GetTransactions, SubscriptTransactions, SubscribeInvoices, and
NewWitnessAddress.
This commit is contained in:
Olaoluwa Osuntokun committed 2016-10-15 14:42:25 -07:00
1 parent 566cd86a1d
commit 7b953c9c61
5 files changed
+145 -8

No files matched your search

+3
View File
@@ -1155,6 +1155,9 @@ func (p *peer) handleUpstreamMsg(state *commitmentState, msg lnwire.Message) {
p.Disconnect()
return
}
// TODO(roasbeef): add pre-image to DB in order to swipe
// repeated r-values
case *lnwire.CommitSignature:
// We just received a new update to our local commitment chain,
// validate this new commitment, closing the link if invalid.