diff options
| author | Rubén Darío Ponticelli <[email protected]> | 2013-02-05 16:35:23 -0300 |
|---|---|---|
| committer | Rubén Darío Ponticelli <[email protected]> | 2013-02-05 18:29:41 -0300 |
| commit | e90b831e83298907d2f9eca77bbda0a687bf13d7 (patch) | |
| tree | c011f3ab65c208b952d01e010b126de34d4755a1 /src/main.cpp | |
| parent | Merge branch 'reindexgen' of git://github.com/sipa/bitcoin (diff) | |
| download | discoin-e90b831e83298907d2f9eca77bbda0a687bf13d7.tar.xz discoin-e90b831e83298907d2f9eca77bbda0a687bf13d7.zip | |
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.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index cfb459c9a..4304840fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3812,7 +3812,12 @@ bool SendMessages(CNode* pto, bool fSendTrickle) } // 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 static int64 nLastRebroadcast; |