mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01: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')
|
||||
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'}])
|
||||
assert not result[0]['success']
|
||||
assert 'warnings' not in result[0]
|
||||
|
||||
Reference in New Issue
Block a user