From b34563bbd98ed8ad50de24fb8db18c2e6fc566b4 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 28 Oct 2013 14:13:20 -0400 Subject: [PATCH] Request updates for new change addresses. When sending a new transaction, the change address must receive the same updates as explicitly-generated addresses. Without this notification, the unconfirmed UTXO will never become confirmed as the notification will never be received. This fixes the issue where change UTXOs never move from "Unconfirmed" to "Balance" in btcgui. --- cmdmgr.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmdmgr.go b/cmdmgr.go index b607eaf..e9bbd40 100644 --- a/cmdmgr.go +++ b/cmdmgr.go @@ -368,6 +368,9 @@ func SendFrom(reply chan []byte, msg *btcjson.Message) { return } + // Request updates for change address. + w.ReqNewTxsForAddress(createdTx.changeAddr) + // Send rawtx off to btcd n := <-NewJSONID var id interface{} = fmt.Sprintf("btcwallet(%v)", n) @@ -523,6 +526,9 @@ func SendMany(reply chan []byte, msg *btcjson.Message) { return } + // Request updates for change address. + w.ReqNewTxsForAddress(createdTx.changeAddr) + // Send rawtx off to btcd n := <-NewJSONID var id interface{} = fmt.Sprintf("btcwallet(%v)", n)