Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
wallet: don't leak height of local chain during inital sync
Browse files Browse the repository at this point in the history
  • Loading branch information
recursive-rat4 committed Mar 22, 2017
1 parent d713384 commit 8e15d99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,8 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64_t> >& vecSend,
// going ten blocks back. Doesn't yet do anything for sniping, but does act
// to shake out wallet bugs like not showing nLockTime'd transactions at
// all.
wtxNew.nLockTime = std::max(0, nBestHeight - 10);
if (!IsInitialBlockDownload())
wtxNew.nLockTime = std::max(0, nBestHeight - 10);

// Secondly occasionally randomly pick a nLockTime even further back, so
// that transactions that are delayed after signing for whatever reason,
Expand Down

0 comments on commit 8e15d99

Please sign in to comment.