Page MenuHomePhabricator

[avalanche tests] implement AvalancheProof serialization
ClosedPublic

Authored by PiRK on Wed, Mar 31, 08:23.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCb4c1f0e896e1: [avalanche tests] implement AvalancheProof serialization
Summary

This diff implements a proper serialization and deserialization for the
AvalancheProof object in the test framework, so we can inspect more in
details the data contained in the proof shared by a node and print a more
user-friendly representation of it.

Based on code from abandoned diff D9341.

Depends on D9360.

Test Plan

ninja check-functional

The unit test added in D9360 ensures that a proof remains unchanged
after a serialization-deserialization round-trip.

Diff Detail

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