Page MenuHomePhabricator

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

Authored by PiRK on Sep 8 2023, 14:31.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
deser_tx
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24991
Build 49570: Build Diffelectrum-tests
Build 49569: arc lint + arc unit

Event Timeline

PiRK requested review of this revision.Sep 8 2023, 14:31
This revision is now accepted and ready to land.Sep 11 2023, 08:25