Litecoin: Disable mempool replacement by default and update tests

This commit is contained in:
Adrian Gallagher 2018-01-28 21:28:02 -08:00
parent c44278e77e
commit 8246d7876e
No known key found for this signature in database
GPG Key ID: FE3348877809386C
4 changed files with 11 additions and 4 deletions

View File

@ -94,6 +94,11 @@ Minimum relay fee lowered
The minimum relay fee `-minrelayfee` has been lowered to 0.01 lites per kB (0.00001 LTC). This is to prepare for dropping the minimum transaction fee to 0.1 lites per kB (0.0001 LTC) in the next release. The minimum relay fee `-minrelayfee` has been lowered to 0.01 lites per kB (0.00001 LTC). This is to prepare for dropping the minimum transaction fee to 0.1 lites per kB (0.0001 LTC) in the next release.
Mempool replacement disabled by default
---------------------------------------
Mempool replacement `--mempoolreplacement` has been disabled by default.
Miner block size limiting deprecated Miner block size limiting deprecated
------------------------------------ ------------------------------------

View File

@ -134,7 +134,7 @@ static const unsigned int DEFAULT_BANSCORE_THRESHOLD = 100;
/** Default for -persistmempool */ /** Default for -persistmempool */
static const bool DEFAULT_PERSIST_MEMPOOL = true; static const bool DEFAULT_PERSIST_MEMPOOL = true;
/** Default for -mempoolreplacement */ /** Default for -mempoolreplacement */
static const bool DEFAULT_ENABLE_REPLACEMENT = true; static const bool DEFAULT_ENABLE_REPLACEMENT = false;
/** Default for using fee filter */ /** Default for using fee filter */
static const bool DEFAULT_FEEFILTER = true; static const bool DEFAULT_FEEFILTER = true;

View File

@ -15,7 +15,7 @@ make assumptions about execution order.
""" """
from segwit import send_to_witness from segwit import send_to_witness
from test_framework.test_framework import BitcoinTestFramework from test_framework.test_framework import BitcoinTestFramework, SkipTest
from test_framework import blocktools from test_framework import blocktools
from test_framework.mininode import CTransaction from test_framework.mininode import CTransaction
from test_framework.util import * from test_framework.util import *
@ -37,6 +37,8 @@ class BumpFeeTest(BitcoinTestFramework):
for i in range(self.num_nodes)] for i in range(self.num_nodes)]
def run_test(self): def run_test(self):
raise SkipTest("Litecoin doesn't support RBF.")
# Encrypt wallet for test_locked_wallet_fails test # Encrypt wallet for test_locked_wallet_fails test
self.nodes[1].node_encrypt_wallet(WALLET_PASSPHRASE) self.nodes[1].node_encrypt_wallet(WALLET_PASSPHRASE)
self.start_node(1) self.start_node(1)

View File

@ -90,8 +90,8 @@ class ListTransactionsTest(BitcoinTestFramework):
assert_array_result(self.nodes[0].listtransactions("watchonly", 100, 0, True), assert_array_result(self.nodes[0].listtransactions("watchonly", 100, 0, True),
{"category":"receive","amount":Decimal("0.1")}, {"category":"receive","amount":Decimal("0.1")},
{"txid":txid, "account" : "watchonly"} ) {"txid":txid, "account" : "watchonly"} )
# Litecoin has RBF disabled
self.run_rbf_opt_in_test() # self.run_rbf_opt_in_test()
# Check that the opt-in-rbf flag works properly, for sent and received # Check that the opt-in-rbf flag works properly, for sent and received
# transactions. # transactions.