Skip to content

Commit 4b6dd97

Browse files
committed
test: remove bdb assert in tool_wallet.py
1 parent efac285 commit 4b6dd97

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

test/functional/tool_wallet.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@ def assert_is_sqlite(self, filename):
9595
file_magic = f.read(16)
9696
assert file_magic == b'SQLite format 3\x00'
9797

98-
def assert_is_bdb(self, filename):
99-
with open(filename, 'rb') as f:
100-
f.seek(12, 0)
101-
file_magic = f.read(4)
102-
assert file_magic == b'\x00\x05\x31\x62' or file_magic == b'\x62\x31\x05\x00'
103-
10498
def write_dump(self, dump, filename, magic=None, skip_checksum=False):
10599
if magic is None:
106100
magic = "BITCOIN_CORE_WALLET_DUMP"
@@ -151,12 +145,8 @@ def do_tool_createfromdump(self, wallet_name, dumpfile):
151145

152146
self.assert_tool_output("The dumpfile may contain private keys. To ensure the safety of your Bitcoin, do not share the dumpfile.\n", '-wallet={}'.format(wallet_name), '-dumpfile={}'.format(rt_dumppath), 'dump')
153147

154-
rt_dump_data = self.read_dump(rt_dumppath)
155148
wallet_dat = self.nodes[0].wallets_path / wallet_name / "wallet.dat"
156-
if rt_dump_data["format"] == "bdb":
157-
self.assert_is_bdb(wallet_dat)
158-
else:
159-
self.assert_is_sqlite(wallet_dat)
149+
self.assert_is_sqlite(wallet_dat)
160150

161151
def test_invalid_tool_commands_and_args(self):
162152
self.log.info('Testing that various invalid commands raise with specific error messages')

0 commit comments

Comments
 (0)