Page MenuHomePhabricator

[chronik] Electrum: fix txid vs tx_hash the parameter name
ClosedPublic

Authored by Fabien on Jun 3 2025, 16:17.

Details

Summary

The protocol uses tx_hash instead of txid so we use that to remain compatible with clients using named arguments.

Test Plan
./test/functional/test_runner.py chronik_electrum_*

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bytesofman added a subscriber: bytesofman.
bytesofman added inline comments.
chronik/chronik-http/src/electrum.rs
1489 ↗(On Diff #54308)

was this working before this diff? why?

This revision is now accepted and ready to land.Jun 3 2025, 18:31
chronik/chronik-http/src/electrum.rs
1489 ↗(On Diff #54308)

yes it worked, the parameter is simply renamed to match the protocol. Apart from the renaming there is no change in behavior