Skip to content

Commit e08e656

Browse files
committed
test: remove assert_dump since it is not used anymore
1 parent 4b6dd97 commit e08e656

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/functional/tool_wallet.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,6 @@ def write_dump(self, dump, filename, magic=None, skip_checksum=False):
110110
row = ",".join(["checksum", dump["checksum"]]) + "\n"
111111
f.write(row)
112112

113-
def assert_dump(self, expected, received):
114-
e = expected.copy()
115-
r = received.copy()
116-
117-
# BDB will add a "version" record that is not present in sqlite
118-
# In that case, we should ignore this record in both
119-
# But because this also effects the checksum, we also need to drop that.
120-
v_key = "0776657273696f6e" # Version key
121-
if v_key in e and v_key not in r:
122-
del e[v_key]
123-
del e["checksum"]
124-
del r["checksum"]
125-
if v_key not in e and v_key in r:
126-
del r[v_key]
127-
del e["checksum"]
128-
del r["checksum"]
129-
130-
assert_equal(len(e), len(r))
131-
for k, v in e.items():
132-
assert_equal(v, r[k])
133-
134113
def do_tool_createfromdump(self, wallet_name, dumpfile):
135114
dumppath = self.nodes[0].datadir_path / dumpfile
136115
rt_dumppath = self.nodes[0].datadir_path / "rt-{}.dump".format(wallet_name)

0 commit comments

Comments
 (0)