Page MenuHomePhabricator

[electrum] implement TxInput.to_coin_dict and TxInput.is_complete
ClosedPublic

Authored by PiRK on Sep 8 2023, 10:49.

Details

Summary

Move the serialization to the legacy dict format into TxInput

This opens the way to using TxInput internally in the Transaction class while still being able to convert to the legacy dict where it is really needed (saving coins to JSON)

Add tests related to input completeness (incomplete inputs have a value and a xpub)
Depends on D14459

Test Plan

python test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
deser_tx
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24980
Build 49548: Build Diffelectrum-tests
Build 49547: arc lint + arc unit