Skip to content

Commit

Permalink
squashme: when not broadcasting, don't reaccept transactions into mem…
Browse files Browse the repository at this point in the history
…pool either

This would be an information leak.
  • Loading branch information
laanwj committed Mar 28, 2015
1 parent cff1cf8 commit 41d08e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/wallet.cpp
Expand Up @@ -1096,6 +1096,9 @@ int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)

void CWallet::ReacceptWalletTransactions()
{
// If transcations aren't broadcasted, don't let them into local mempool either
if (!fBroadcastTransactions)
return;
LOCK2(cs_main, cs_wallet);
BOOST_FOREACH(PAIRTYPE(const uint256, CWalletTx)& item, mapWallet)
{
Expand Down

0 comments on commit 41d08e0

Please sign in to comment.