MCPcopy Create free account
hub / github.com/ElementsProject/elements / assert_is_bdb

Method assert_is_bdb

test/functional/tool_wallet.py:116–120  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

114 assert file_magic == b'SQLite format 3\x00'
115
116 def assert_is_bdb(self, filename):
117 with open(filename, 'rb') as f:
118 f.seek(12, 0)
119 file_magic = f.read(4)
120 assert file_magic == b'\x00\x05\x31\x62' or file_magic == b'\x62\x31\x05\x00'
121
122 def write_dump(self, dump, filename, magic=None, skip_checksum=False):
123 if magic is None:

Callers 1

Calls 2

seekMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected