Page MenuHomePhabricator

[avalanche] Add stake contender inv type
ClosedPublic

Authored by roqqit on Tue, Aug 20, 16:41.

Details

Reviewers
PiRK
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABCf93c6792c0cf: [avalanche] Add stake contender inv type
Summary

This patch adds the stake contender inv type as a necessary precursor to finalizing stake winners in pre-consensus. This inv type is not actually requestable, so it is ignored. It will be used to poll for stake winners in a future patch.

Test Plan
ninja check-functional

Diff Detail

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

Event Timeline

Owners added a reviewer: Restricted Owners Package.Tue, Aug 20, 16:41
roqqit requested review of this revision.Tue, Aug 20, 16:41
PiRK added a subscriber: PiRK.

with a nit in the test

test/functional/p2p_inv_download.py
491–492 ↗(On Diff #49296)

You can use a named arg rather than adding a comment (see p2p_filter.py for an example)

This revision is now accepted and ready to land.Wed, Aug 21, 12:53

use named arg per feedback

This revision was automatically updated to reflect the committed changes.