Do not call ResendWalletTransactions when reindexing, importing or on IBD

Calling ResendWalletTransactions when reindexing, importing or on IBD spams
other nodes with our old transactions, because they become unconfirmed.
This commit is contained in:
Rubén Darío Ponticelli 2013-02-05 16:35:23 -03:00
parent 79892883d7
commit e90b831e83

View File

@ -3812,7 +3812,12 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
} }
// Resend wallet transactions that haven't gotten in a block yet // Resend wallet transactions that haven't gotten in a block yet
// Except during reindex, importing and IBD, when old wallet
// transactions become unconfirmed and spams other nodes.
if (!fReindex && !fImporting && !IsInitialBlockDownload())
{
ResendWalletTransactions(); ResendWalletTransactions();
}
// Address refresh broadcast // Address refresh broadcast
static int64 nLastRebroadcast; static int64 nLastRebroadcast;