Page MenuHomePhabricator

[avalanche] Add conflicting proofs to the vote
Needs RevisionPublic

Authored by Fabien on Thu, Sep 2, 13:45.


Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task

This puts the conflicting proofs to votes on the avalanche network. It's currently limited to polling for proofs only, and hidden behind a flag to avoid bloating the network until the whole proof voting feature is complete.

Depends on D10026.

Ref T1634.

Test Plan
./test/functional/ abc_p2p_avalanche_proof_voting

Diff Detail

rABC Bitcoin ABC
Lint Passed
No Test Coverage
Build Status
Buildable 16527
Build 32916: Build Diffbuild-clang · build-debug · build-diff · build-clang-tidy · lint-circular-dependencies · build-without-wallet
Build 32915: arc lint + arc unit

Event Timeline

Fabien requested review of this revision.Thu, Sep 2, 13:45
deadalnix requested changes to this revision.Thu, Sep 2, 14:44
deadalnix added a subscriber: deadalnix.

There are obvious problems with this. For instance, one can completely disable avalanche by flooding the system with proofs. While it is not expected that all problems are solved right out of the bat, this is somewhat surprising that none of the limitations have been thought through and do not inspire confidence that this is moving in the right direction at all. Documenting known problems in the code, in addition of having the benefice that problems are documented in the code, is the only way a reviewer can asses if the person writing the code is actually moving somewhere sensible with it.


This is computed but not used anywhere.


This seems wasteful to compute all of this when none of it matters when accepted is false.


El famoso

if (condition) return true;
retrun false;

What about that instead?

return condition;

This is a change in the general locking model of the thread manager. Why?


This whole mess this to be a pretty string signal to me that this list belong in the Processor, just like blocks, not in the PeerManager.

This revision now requires changes to proceed.Thu, Sep 2, 14:44
Mengerian added a task: Restricted Maniphest Task.Tue, Sep 14, 16:49
Mengerian removed a task: Restricted Maniphest Task.