diff options
| author | Matt Corallo <[email protected]> | 2016-12-02 18:33:15 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-02 21:30:36 -0800 |
| commit | 9b9324ee49e3e9cd401cedb8cdfce9a4b7c040de (patch) | |
| tree | 040a0feb0a662d3839c7eefe5cf9aecd2caeae55 /src/net_processing.cpp | |
| parent | Merge #9260: Mrs Peacock in The Library with The Candlestick (killed main.{h,... (diff) | |
| download | discoin-9b9324ee49e3e9cd401cedb8cdfce9a4b7c040de.tar.xz discoin-9b9324ee49e3e9cd401cedb8cdfce9a4b7c040de.zip | |
Fix rounding privacy leak introduced in #9260
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 747167264..7c87cc4c1 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)); |