mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
If we don't allow free txs, always send a fee filter
This commit is contained in:
parent
72bf1b3d09
commit
01fea7a048
@ -2993,6 +2993,9 @@ bool SendMessages(CNode* pto, CConnman& connman)
|
||||
if (pto->nVersion >= FEEFILTER_VERSION && GetBoolArg("-feefilter", DEFAULT_FEEFILTER) &&
|
||||
!(pto->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY))) {
|
||||
CAmount currentFilter = mempool.GetMinFee(GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK();
|
||||
// If we don't allow free transactions, then we always have a fee filter of at least minRelayTxFee
|
||||
if (GetArg("-limitfreerelay", DEFAULT_LIMITFREERELAY) <= 0)
|
||||
currentFilter = std::max(currentFilter, ::minRelayTxFee.GetFeePerK());
|
||||
int64_t timeNow = GetTimeMicros();
|
||||
if (timeNow > pto->nextSendTimeFeeFilter) {
|
||||
static CFeeRate default_feerate(DEFAULT_MIN_RELAY_TX_FEE);
|
||||
|
Loading…
Reference in New Issue
Block a user