HomePhabricator

[electrum] remove unnecessary hex conversion when converting int to bytes

Description

[electrum] remove unnecessary hex conversion when converting int to bytes

Summary:
Python int has a builtin to_bytes method.
Also rename int_to_hex to int_to_le_hex to clarify what it is doing.

Test Plan:

python test_runner.py
python -m electrumabc.bitcoin   # run doctest

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D14462

Details

Provenance
PiRKAuthored on Sep 8 2023, 14:00
PiRKPushed on Sep 11 2023, 13:36
Reviewer
Restricted Project
Differential Revision
D14462: [electrum] remove unnecessary hex conversion when converting int to bytes
Parents
rABC249ff66a543b: [Automated] Update seeds
Branches
Unknown
Tags
Unknown