Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_limit.py
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
txid = self.nodes[0].sendrawtransaction(txFS['hex']) | txid = self.nodes[0].sendrawtransaction(txFS['hex']) | ||||
for i in range(utxo_groups): | for i in range(utxo_groups): | ||||
txids.append([]) | txids.append([]) | ||||
txids[i] = send_big_transactions( | txids[i] = send_big_transactions( | ||||
self.nodes[0], utxos[30 * i:30 * i + 30], 30, 10 * (i + 1)) | self.nodes[0], utxos[30 * i:30 * i + 30], 30, 10 * (i + 1)) | ||||
self.log.info('The tx should be evicted by now') | self.log.info('The tx should be evicted by now') | ||||
assert(txid not in self.nodes[0].getrawmempool()) | assert txid not in self.nodes[0].getrawmempool() | ||||
txdata = self.nodes[0].gettransaction(txid) | txdata = self.nodes[0].gettransaction(txid) | ||||
assert(txdata['confirmations'] == 0) # confirmation should still be 0 | # confirmation should still be 0 | ||||
assert txdata['confirmations'] == 0 | |||||
self.log.info('Check that mempoolminfee is larger than minrelytxfee') | self.log.info('Check that mempoolminfee is larger than minrelytxfee') | ||||
assert_equal(self.nodes[0].getmempoolinfo()[ | assert_equal(self.nodes[0].getmempoolinfo()[ | ||||
'minrelaytxfee'], Decimal('0.00001000')) | 'minrelaytxfee'], Decimal('0.00001000')) | ||||
assert_greater_than(self.nodes[0].getmempoolinfo()[ | assert_greater_than(self.nodes[0].getmempoolinfo()[ | ||||
'mempoolminfee'], Decimal('0.00001000')) | 'mempoolminfee'], Decimal('0.00001000')) | ||||
self.log.info('Create a mempool tx that will not pass mempoolminfee') | self.log.info('Create a mempool tx that will not pass mempoolminfee') | ||||
Show All 13 Lines |