Commit 8e15d999 authored by Pavel Vasin's avatar Pavel Vasin

wallet: don't leak height of local chain during inital sync

parent d7133844
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment