Skip to content

Commit 191f7b9

Browse files
committed
Reduce min relay to 100 sat/vkB
1 parent ab0b7ac commit 191f7b9

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

src/policy/policy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern CAsset policyAsset;
2222
/** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/
2323
static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = MAX_BLOCK_WEIGHT - 4000;
2424
/** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/
25-
static const unsigned int DEFAULT_BLOCK_MIN_TX_FEE = 1000;
25+
static const unsigned int DEFAULT_BLOCK_MIN_TX_FEE = 100;
2626
/** The maximum weight for transactions we're willing to relay/mine */
2727
static const unsigned int MAX_STANDARD_TX_WEIGHT = 400000;
2828
/** The minimum non-witness size for transactions we're willing to relay/mine (1 segwit input + 1 P2WPKH output = 82 bytes) */
@@ -34,7 +34,7 @@ static const unsigned int MAX_STANDARD_TX_SIGOPS_COST = MAX_BLOCK_SIGOPS_COST/5;
3434
/** Default for -maxmempool, maximum megabytes of mempool memory usage */
3535
static const unsigned int DEFAULT_MAX_MEMPOOL_SIZE = 300;
3636
/** Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting or BIP 125 replacement **/
37-
static const unsigned int DEFAULT_INCREMENTAL_RELAY_FEE = 1000;
37+
static const unsigned int DEFAULT_INCREMENTAL_RELAY_FEE = 100;
3838
/** Default for -bytespersigop */
3939
static const unsigned int DEFAULT_BYTES_PER_SIGOP = 20;
4040
/** The maximum number of witness stack items in a standard P2WSH script */

src/test/test_bitcoin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName, const std::st
6060
// Set policy asset for correct fee output generation
6161
policyAsset = CAsset();
6262

63+
// For unit tests, increase minrelay to "normal" 1000 sat/vkB
64+
incrementalRelayFee = CFeeRate(1000);
65+
6366
noui_connect();
6467
}
6568

src/validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static const bool DEFAULT_WHITELISTRELAY = true;
5555
/** Default for -whitelistforcerelay. */
5656
static const bool DEFAULT_WHITELISTFORCERELAY = false;
5757
/** Default for -minrelaytxfee, minimum relay fee for transactions */
58-
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
58+
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 100;
5959
//! -maxtxfee default
6060
static const CAmount DEFAULT_TRANSACTION_MAXFEE = COIN / 10;
6161
//! Discourage users to set fees higher than this amount (in satoshis) per kB

test/bitcoin_functional/functional/test_framework/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ def initialize_datadir(dirname, n):
323323
f.write("scriptprefix=196\n")
324324
f.write("bech32_hrp=bcrt\n")
325325
f.write("con_dyna_deploy_start="+str(2**31)+"\n") # Never starts
326+
f.write("minrelaytxfee=0.00001\n")
326327
os.makedirs(os.path.join(datadir, 'stderr'), exist_ok=True)
327328
os.makedirs(os.path.join(datadir, 'stdout'), exist_ok=True)
328329
return datadir

test/functional/test_framework/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def initialize_datadir(dirname, n, chain):
331331
f.write("con_csv_deploy_start=0\n") # Enhance tests if removing this line
332332
f.write("blindedaddresses=0\n") # Set to minimize broken tests in favor of custom
333333
f.write("con_dyna_deploy_start="+str(2**31)+"\n") # Never starts unless overridden
334+
f.write("minrelaytxfee=0.00001\n")
334335
#f.write("pubkeyprefix=111\n")
335336
#f.write("scriptprefix=196\n")
336337
#f.write("bech32_hrp=bcrt\n")

0 commit comments

Comments
 (0)