From 9b9324ee49e3e9cd401cedb8cdfce9a4b7c040de Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 2 Dec 2016 18:33:15 -0800 Subject: Fix rounding privacy leak introduced in #9260 --- src/net_processing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 747167264b..7c87cc4c1d 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2995,7 +2995,8 @@ bool SendMessages(CNode* pto, CConnman& connman) CAmount currentFilter = mempool.GetMinFee(GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK(); int64_t timeNow = GetTimeMicros(); if (timeNow > pto->nextSendTimeFeeFilter) { - static FeeFilterRounder filterRounder(::minRelayTxFee); + static CFeeRate default_feerate(DEFAULT_MIN_RELAY_TX_FEE); + static FeeFilterRounder filterRounder(default_feerate); CAmount filterToSend = filterRounder.round(currentFilter); if (filterToSend != pto->lastSentFeeFilter) { connman.PushMessage(pto, msgMaker.Make(NetMsgType::FEEFILTER, filterToSend)); -- cgit v1.2.3