Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_bitcoin_cli.py
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
cli_get_info['unlocked_until'], | cli_get_info['unlocked_until'], | ||||
wallet_info['unlocked_until']) | wallet_info['unlocked_until']) | ||||
assert_equal(cli_get_info['paytxfee'], wallet_info['paytxfee']) | assert_equal(cli_get_info['paytxfee'], wallet_info['paytxfee']) | ||||
assert_equal(cli_get_info['relayfee'], network_info['relayfee']) | assert_equal(cli_get_info['relayfee'], network_info['relayfee']) | ||||
assert_equal(self.nodes[0].cli.getwalletinfo(), wallet_info) | assert_equal(self.nodes[0].cli.getwalletinfo(), wallet_info) | ||||
# Setup to test -getinfo, -generate, and -rpcwallet= with multiple | # Setup to test -getinfo, -generate, and -rpcwallet= with multiple | ||||
# wallets. | # wallets. | ||||
wallets = ['', 'Encrypted', 'secret'] | wallets = [self.default_wallet_name, 'Encrypted', 'secret'] | ||||
amounts = [ | amounts = [ | ||||
BALANCE + Decimal('9999995.50'), | BALANCE + Decimal('9999995.50'), | ||||
Decimal(9000000), | Decimal(9000000), | ||||
Decimal(31000000)] | Decimal(31000000)] | ||||
self.nodes[0].createwallet(wallet_name=wallets[1]) | self.nodes[0].createwallet(wallet_name=wallets[1]) | ||||
self.nodes[0].createwallet(wallet_name=wallets[2]) | self.nodes[0].createwallet(wallet_name=wallets[2]) | ||||
w1 = self.nodes[0].get_wallet_rpc(wallets[0]) | w1 = self.nodes[0].get_wallet_rpc(wallets[0]) | ||||
w2 = self.nodes[0].get_wallet_rpc(wallets[1]) | w2 = self.nodes[0].get_wallet_rpc(wallets[1]) | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |