mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-09 06:09:48 +02:00
test: Remove unnecessary importprivkey from wallet_createwallet
This test was testing importprivkey behavior in a legacy wallet without private keys. As legacy wallets no longer exist, this test case is no longer relevant.
This commit is contained in:
@@ -45,7 +45,6 @@ class CreateWalletTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
self.log.info('Test that private keys cannot be imported')
|
self.log.info('Test that private keys cannot be imported')
|
||||||
privkey, pubkey = generate_keypair(wif=True)
|
privkey, pubkey = generate_keypair(wif=True)
|
||||||
assert_raises_rpc_error(-4, 'Cannot import private keys to a wallet with private keys disabled', w1.importprivkey, privkey)
|
|
||||||
result = w1.importdescriptors([{'desc': descsum_create('wpkh(' + privkey + ')'), 'timestamp': 'now'}])
|
result = w1.importdescriptors([{'desc': descsum_create('wpkh(' + privkey + ')'), 'timestamp': 'now'}])
|
||||||
assert not result[0]['success']
|
assert not result[0]['success']
|
||||||
assert 'warnings' not in result[0]
|
assert 'warnings' not in result[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user