Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_persist.py
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
self.extra_args = [[], ["-persistmempool=0"], []] | self.extra_args = [[], ["-persistmempool=0"], []] | ||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
def run_test(self): | def run_test(self): | ||||
self.log.debug("Send 5 transactions from node2 (to its own address)") | self.log.debug("Send 5 transactions from node2 (to its own address)") | ||||
tx_creation_time_lower = int(time.time()) | tx_creation_time_lower = int(time.time()) | ||||
for i in range(5): | for _ in range(5): | ||||
last_txid = self.nodes[2].sendtoaddress( | last_txid = self.nodes[2].sendtoaddress( | ||||
self.nodes[2].getnewaddress(), Decimal("10")) | self.nodes[2].getnewaddress(), Decimal("10")) | ||||
node2_balance = self.nodes[2].getbalance() | node2_balance = self.nodes[2].getbalance() | ||||
self.sync_all() | self.sync_all() | ||||
tx_creation_time_higher = int(time.time()) | tx_creation_time_higher = int(time.time()) | ||||
self.log.debug( | self.log.debug( | ||||
"Verify that node0 and node1 have 5 transactions in their mempools") | "Verify that node0 and node1 have 5 transactions in their mempools") | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |