aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-05-18 12:12:04 -0400
committerCarl Dong <contact@carldong.me>2022-06-22 18:18:56 -0400
commitccbaf546a68d6cda8ed3efd0598c0e4121b366bb (patch)
tree5c810ca46787004d3386f66abb073b042ad5bb55 /src/policy
parentfc02f77ca604f0221171bfde3059b34f5d0fb1cd (diff)
downloadbitcoin-ccbaf546a68d6cda8ed3efd0598c0e4121b366bb.tar.xz
scripted-diff: Rename DEFAULT_MAX_MEMPOOL_SIZE to indicate SI unit
Better to be explicit when it comes to sizes to avoid unintentional bugs. We use MB and KB all over the place. -BEGIN VERIFY SCRIPT- find_regex="DEFAULT_MAX_MEMPOOL_SIZE" \ && git grep -l -E "$find_regex" \ | xargs sed -i -E "s@$find_regex@\0_MB@g" -END VERIFY SCRIPT-
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/policy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index cd46652efc..027b9c6a37 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -32,7 +32,7 @@ static constexpr unsigned int MAX_P2SH_SIGOPS{15};
/** The maximum number of sigops we're willing to relay/mine in a single tx */
static constexpr unsigned int MAX_STANDARD_TX_SIGOPS_COST{MAX_BLOCK_SIGOPS_COST/5};
/** Default for -maxmempool, maximum megabytes of mempool memory usage */
-static constexpr unsigned int DEFAULT_MAX_MEMPOOL_SIZE{300};
+static constexpr unsigned int DEFAULT_MAX_MEMPOOL_SIZE_MB{300};
/** Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting or BIP 125 replacement **/
static constexpr unsigned int DEFAULT_INCREMENTAL_RELAY_FEE{1000};
/** Default for -bytespersigop */