Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_importmulti.py
Show First 20 Lines • Show All 736 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
}] | }] | ||||
) | ) | ||||
assert result[0]['success'] | assert result[0]['success'] | ||||
assert_equal(wrpc.getwalletinfo()["keypoolsize"], 0) | assert_equal(wrpc.getwalletinfo()["keypoolsize"], 0) | ||||
# Cannot import those pubkeys to keypool of wallet with privkeys | # Cannot import those pubkeys to keypool of wallet with privkeys | ||||
self.log.info( | self.log.info( | ||||
"Pubkeys cannot be added to the keypool of a wallet with private keys") | "Pubkeys cannot be added to the keypool of a wallet with private keys") | ||||
wrpc = self.nodes[1].get_wallet_rpc("") | wrpc = self.nodes[1].get_wallet_rpc(self.default_wallet_name) | ||||
assert wrpc.getwalletinfo()['private_keys_enabled'] | assert wrpc.getwalletinfo()['private_keys_enabled'] | ||||
result = wrpc.importmulti( | result = wrpc.importmulti( | ||||
[{ | [{ | ||||
'desc': descsum_create('pkh(' + pub1 + ')'), | 'desc': descsum_create('pkh(' + pub1 + ')'), | ||||
'keypool': True, | 'keypool': True, | ||||
"timestamp": "now", | "timestamp": "now", | ||||
}] | }] | ||||
) | ) | ||||
Show All 34 Lines |