From 8e15d99955b59d496da0b45d1f0be645b71575e9 Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Thu, 23 Mar 2017 02:03:13 +0300 Subject: [PATCH] wallet: don't leak height of local chain during inital sync --- src/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 8b5bbf00559f5..184c2c5b99a24 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1417,7 +1417,8 @@ bool CWallet::CreateTransaction(const vector >& 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,