Page MenuHomePhabricator

[electrum] implement eMPP parsing
Needs ReviewPublic

Authored by PiRK on Thu, Mar 6, 16:41.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Depends on D17558

Test Plan

python test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
alp
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32609
Build 64706: Build Diffelectrum-tests
Build 64705: arc lint + arc unit

Event Timeline

PiRK requested review of this revision.Thu, Mar 6, 16:41

add tests for incorrect data length in otherwise valid succession of push ops

electrum/electrumabc/transaction.py
788

OpCodes is an IntEnum, so in theory it is already an alias for int. But various code quality tools will not be happy if we pass an int instead of one of the enum values without this change, and some push opcodes (17 to 0x4e) are not explicitly listed.

electrum/electrumabc/transaction.py
788

correction: 0x01 to 0x4B (push n bytes, with 1 <= n <= 0x4B)