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

+1 -1
View File
@@ -219,7 +219,7 @@ func WriteMessage(w io.Writer, msg Message, pver uint32, btcnet wire.BitcoinNet)
return 0, nil
}
// Write the head first.
// Write the header first.
n, err := w.Write(hw.Bytes())
totalBytes += n
if err != nil {