diff --git a/cmdmgr.go b/cmdmgr.go index 0772129..d6f2be5 100644 --- a/cmdmgr.go +++ b/cmdmgr.go @@ -429,6 +429,13 @@ func SendFrom(reply chan []byte, msg *btcjson.Message) { w.UtxoStore.Unlock() } + // Add hex string of raw tx to sent tx pool. If future blocks + // do not contain a tx, a resend is attempted. + UnminedTxs.Lock() + UnminedTxs.m[TXID(result.(string))] = createdTx + UnminedTxs.Unlock() + + log.Debugf("sent transaction %v", result) ReplySuccess(reply, msg.Id, result) // TODO(jrick): If message succeeded in being sent, save the @@ -602,6 +609,7 @@ func SendMany(reply chan []byte, msg *btcjson.Message) { UnminedTxs.m[TXID(result.(string))] = createdTx UnminedTxs.Unlock() + log.Debugf("sent transaction %v", result) ReplySuccess(reply, msg.Id, result) // TODO(jrick): If message succeeded in being sent, save the