Page MenuHomePhabricator

[avalanche] Add buildavalanchproof RPC call
ClosedPublic

Authored by deadalnix on Jul 11 2020, 22:19.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC454b88ccaea6: [avalanche] Add buildavalanchproof RPC call
Summary

As per title. This RPC allow to generate proof from a JSON description of it.

Test Plan
ninja all check-all

The integration test has been updated to use the RPC in question.

Diff Detail

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

Event Timeline

Fabien requested changes to this revision.Jul 13 2020, 07:44
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/rpc/avalanche.cpp
147 ↗(On Diff #22219)

Why ?

168 ↗(On Diff #22219)

Nit: since height = 0 is supposed to be the genesis block you can check for height < 1

194 ↗(On Diff #22219)

Dito

This revision now requires changes to proceed.Jul 13 2020, 07:44
src/rpc/avalanche.cpp
147 ↗(On Diff #22219)

Leftover debug.

194 ↗(On Diff #22219)

dito

This revision is now accepted and ready to land.Jul 13 2020, 18:31