From 57df957687e2a860e133236f90188a666d335041 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 27 Jan 2014 16:26:58 -0500 Subject: [PATCH] Set sendfrom txid from sendrawtransaction result. Fixes #64 and a bunch of broken notification handlers after sending a transaction using sendfrom. --- cmdmgr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmdmgr.go b/cmdmgr.go index 8c6e081..ce30380 100644 --- a/cmdmgr.go +++ b/cmdmgr.go @@ -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