Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_basic.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 the wallet.""" | """Test the wallet.""" | ||||
from decimal import Decimal | |||||
import time | |||||
from test_framework.messages import FromHex, CTransaction | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | from test_framework.util import ( | ||||
from test_framework.mininode import * | assert_array_result, | ||||
assert_equal, | |||||
assert_fee_amount, | |||||
assert_raises_rpc_error, | |||||
connect_nodes_bi, | |||||
count_bytes, | |||||
sync_blocks, | |||||
sync_mempools, | |||||
) | |||||
class WalletTest(BitcoinTestFramework): | class WalletTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 4 | self.num_nodes = 4 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.extra_args = [ | self.extra_args = [ | ||||
['-usehd={:d}'.format(i % 2 == 0)] for i in range(4)] | ['-usehd={:d}'.format(i % 2 == 0)] for i in range(4)] | ||||
▲ Show 20 Lines • Show All 455 Lines • Show Last 20 Lines |