Fix resendwallettransactions assert failure if -walletbroadcast=0

This commit is contained in:
Matt Corallo
2017-08-05 13:48:37 -04:00
parent a9dd111441
commit 01699fb283
3 changed files with 8 additions and 0 deletions

View File

@@ -1868,6 +1868,7 @@ std::vector<uint256> CWallet::ResendWalletTransactionsBefore(int64_t nTime, CCon
std::vector<uint256> result;
LOCK(cs_wallet);
// Sort them in chronological order
std::multimap<unsigned int, CWalletTx*> mapSorted;
for (std::pair<const uint256, CWalletTx>& item : mapWallet)