Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_basic.py
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | def check_fee_amount(self, curr_balance, balance_with_fee, fee_per_byte, tx_size): | ||||
return curr_balance | return curr_balance | ||||
def run_test(self): | def run_test(self): | ||||
# Check that there's no UTXO on none of the nodes | # Check that there's no UTXO on none of the nodes | ||||
assert_equal(len(self.nodes[0].listunspent()), 0) | assert_equal(len(self.nodes[0].listunspent()), 0) | ||||
assert_equal(len(self.nodes[1].listunspent()), 0) | assert_equal(len(self.nodes[1].listunspent()), 0) | ||||
assert_equal(len(self.nodes[2].listunspent()), 0) | assert_equal(len(self.nodes[2].listunspent()), 0) | ||||
self.log.info("Check for mempoolminfee in getmempoolinfo") | |||||
assert_equal(self.nodes[0].getmempoolinfo()[ | |||||
'mempoolminfee'], Decimal('0.00001000')) | |||||
self.log.info("Mining blocks...") | self.log.info("Mining blocks...") | ||||
self.nodes[0].generate(1) | self.nodes[0].generate(1) | ||||
walletinfo = self.nodes[0].getwalletinfo() | walletinfo = self.nodes[0].getwalletinfo() | ||||
assert_equal(walletinfo['immature_balance'], 50) | assert_equal(walletinfo['immature_balance'], 50) | ||||
assert_equal(walletinfo['balance'], 0) | assert_equal(walletinfo['balance'], 0) | ||||
▲ Show 20 Lines • Show All 438 Lines • Show Last 20 Lines |