Page MenuHomePhabricator

[chronik] implement server.version electrum method
ClosedPublic

Authored by PiRK on Wed, Feb 19, 09:33.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC91ef9971ad45: [chronik] implement server.version electrum method
Summary

See https://electrum-cash-protocol.readthedocs.io/en/latest/

We simply return protocol version "1.4" at the moment, which is what fulcrum also report to Electrum ABC's current request.
This is not exact as we only implement a subset of the commands in that version of the spec, but we do follow the rules for the implemented methods (for instance we don't support some 1.5 additional parameters to blockchain.scripthash.history)

Test Plan

ninja check-functional

Compare results and errors to what a Fulcrum instance returns for similar requests

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Wed, Feb 19, 09:33
PiRK added inline comments.
chronik/chronik-http/Cargo.toml
81 ↗(On Diff #52671)

Already used in chronik-plugins, so this does not technically add a dependency

Fabien added inline comments.
chronik/chronik-http/src/electrum.rs
357 ↗(On Diff #52671)

That's done ?

I reviewed the previous revision, the TODO is indeed done

This revision is now accepted and ready to land.Wed, Feb 19, 09:49