mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 11:57:28 -03:00
Merge pull request #2259 from Criptomonedas/dontresend
Do not call ResendWalletTransactions when reindexing or importing
This commit is contained in:
commit
43ba1a19b8
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
ResendWalletTransactions();
|
// Except during reindex, importing and IBD, when old wallet
|
||||||
|
// transactions become unconfirmed and spams other nodes.
|
||||||
|
if (!fReindex && !fImporting && !IsInitialBlockDownload())
|
||||||
|
{
|
||||||
|
ResendWalletTransactions();
|
||||||
|
}
|
||||||
|
|
||||||
// Address refresh broadcast
|
// Address refresh broadcast
|
||||||
static int64 nLastRebroadcast;
|
static int64 nLastRebroadcast;
|
||||||
|
|
Loading…
Reference in a new issue