diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-05-04 14:08:09 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-05-04 14:18:13 +0200 |
commit | 2c0c6f44770403899bd8514ad7343356853bf38c (patch) | |
tree | 7b25556404f24897b8b172948dbeee99c89792e0 /doc | |
parent | aebcd18c654a1706954a9e2c9cbfe97dfe531357 (diff) |
test: dedup file hashing using `sha256sum_file` helper
Rather than doing the open/read/hash-steps manually in the affected
functional tests, we can just use the `sha256sum_file` helper from the
utils module instead.
Note that for the tool_wallet.py test, the used hash is changed from
sha1 to sha256, but as the only purpose is to detect file content
changes, this doesn't matter. Also, the optimization using `memoryview`
is overkill here, as the opened file has only a size of 24KiB and
determining the hash doesn't take longer than a few hundred
micro-seconds on my machine.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions