Set sendfrom txid from sendrawtransaction result.

Fixes #64 and a bunch of broken notification handlers after sending a
transaction using sendfrom.
This commit is contained in:
Josh Rickmar 2014-01-27 16:26:58 -05:00
parent b09e4f5200
commit 57df957687

View file

@ -857,6 +857,7 @@ func SendFrom(icmd btcjson.Cmd) (interface{}, *btcjson.Error) {
var txid string
request := NewRPCRequest(sendtx, txid)
response := <-CurrentRPCConn().SendRequest(request)
txid = response.Result.(string)
if response.Err != nil {
SendTxHistSyncChans.remove <- createdTx.txid