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:
5 files changed
+145
-8
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user