Branch: refs/heads/master
Home: https://github.com/conformal/btcjson
Commit: 351365493395d43392a33485a62120ac56efe71e
https://github.com/conformal/btcjson/commit/351365493395d43392a33485a62120ac56efe71e
Author: Dave Collins <[email protected]>
Date: 2014-04-11 (Fri, 11 Apr 2014)
Changed paths:
M jsonapi.go
M test_coverage.txt
Log Message:
-----------
Add new (Tls)RpcSend funcs to send a Cmd.
The existing RpcCommand and TlsRpcCommand were build with
CreateMessage(WithID) in mind since they return an already marshalled
command. The approach was changed to use concrete commands created via
the New<command>Cmd family of functions. However, this means the caller
had to manually marshal the command before calling (Tls)RpcCommand which
was not very user friendly.
This commit adds two new functions named RpcSend and TlsRpcSend which
directly accepts a btcjson.Cmd and handles the marshalling itself.
ok @jcvernaleo