Changeset View
Changeset View
Standalone View
Standalone View
qa/rpc-tests/mempool_limit.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2014-2016 The Bitcoin Core developers | # Copyright (c) 2014-2016 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
# Test mempool limiting together/eviction with the wallet | # Test mempool limiting together/eviction with the wallet | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | from test_framework.util import * | ||||
class MempoolLimitTest(BitcoinTestFramework): | class MempoolLimitTest(BitcoinTestFramework): | ||||
def setup_network(self): | def setup_network(self): | ||||
self.nodes = [] | self.nodes = [] | ||||
self.nodes.append( | self.nodes.append( | ||||
start_node(0, self.options.tmpdir, ["-maxmempool=5", | start_node(0, self.options.tmpdir, | ||||
"-spendzeroconfchange=0", | ["-maxmempool=5", "-spendzeroconfchange=0"])) | ||||
"-debug"])) | |||||
self.is_network_split = False | self.is_network_split = False | ||||
self.sync_all() | self.sync_all() | ||||
self.relayfee = self.nodes[0].getnetworkinfo()['relayfee'] | self.relayfee = self.nodes[0].getnetworkinfo()['relayfee'] | ||||
def __init__(self): | def __init__(self): | ||||
super().__init__() | super().__init__() | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
Show All 35 Lines |