Fix unmined transaction resend logging.
This commit is contained in:
parent
83b70e6c7e
commit
145ac3e592
1 changed files with 3 additions and 3 deletions
|
@ -508,15 +508,15 @@ func (a *Account) ResendUnminedTxs() {
|
||||||
|
|
||||||
txs := a.TxStore.UnminedDebitTxs()
|
txs := a.TxStore.UnminedDebitTxs()
|
||||||
for _, tx := range txs {
|
for _, tx := range txs {
|
||||||
txsha, err := client.SendRawTransaction(tx.MsgTx(), false)
|
_, err := client.SendRawTransaction(tx.MsgTx(), false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO(jrick): Check error for if this tx is a double spend,
|
// TODO(jrick): Check error for if this tx is a double spend,
|
||||||
// remove it if so.
|
// remove it if so.
|
||||||
log.Warnf("Could not resend transaction %v: %v",
|
log.Warnf("Could not resend transaction %v: %v",
|
||||||
txsha, err)
|
tx.Sha(), err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Debugf("Resent unmined transaction %v", txsha)
|
log.Debugf("Resent unmined transaction %v", tx.Sha())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue