Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_importdescriptors.py
Show All 9 Lines | |||||
- `get_generate_key()` is called to generate keys and return the privkeys, | - `get_generate_key()` is called to generate keys and return the privkeys, | ||||
pubkeys and all variants of scriptPubKey and address. | pubkeys and all variants of scriptPubKey and address. | ||||
- `test_importdesc()` is called to send an importdescriptors call to node1, test | - `test_importdesc()` is called to send an importdescriptors call to node1, test | ||||
success, and (if unsuccessful) test the error code and error message returned. | success, and (if unsuccessful) test the error code and error message returned. | ||||
- `test_address()` is called to call getaddressinfo for an address on node1 | - `test_address()` is called to call getaddressinfo for an address on node1 | ||||
and test the values returned.""" | and test the values returned.""" | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.descriptors import descsum_create | from test_framework.descriptors import descsum_create | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import ( | from test_framework.util import ( | ||||
assert_equal, | assert_equal, | ||||
assert_raises_rpc_error, | assert_raises_rpc_error, | ||||
find_vout_for_address, | find_vout_for_address, | ||||
) | ) | ||||
from test_framework.wallet_util import ( | from test_framework.wallet_util import get_generate_key, test_address | ||||
get_generate_key, | |||||
test_address, | |||||
) | |||||
class ImportDescriptorsTest(BitcoinTestFramework): | class ImportDescriptorsTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.extra_args = [[], ["-keypool=5"]] | self.extra_args = [[], ["-keypool=5"]] | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
▲ Show 20 Lines • Show All 440 Lines • Show Last 20 Lines |