mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
walletdb: Combine VerifyDatabaseFile and VerifyEnvironment
Combine these two functions into a single Verify function that is a member of WalletDatabase. Additionally, these are no longer static.
This commit is contained in:
@ -71,8 +71,7 @@ class ToolWalletTest(BitcoinTestFramework):
|
||||
self.assert_raises_tool_error('Error: two methods provided (info and create). Only one method should be provided.', 'info', 'create')
|
||||
self.assert_raises_tool_error('Error parsing command line arguments: Invalid parameter -foo', '-foo')
|
||||
self.assert_raises_tool_error(
|
||||
'Error initializing wallet database environment "{}"!\nError loading wallet.dat. Is wallet being used by other process?'
|
||||
.format(os.path.join(self.nodes[0].datadir, self.chain, 'wallets')),
|
||||
'Error loading wallet.dat. Is wallet being used by another process?',
|
||||
'-wallet=wallet.dat',
|
||||
'info',
|
||||
)
|
||||
|
Reference in New Issue
Block a user