Page MenuHomePhabricator

[avalanche] Add a way to retrieve all proof ids in a proofpool
ClosedPublic

Authored by sdulfari on Sep 16 2022, 19:10.

Details

Summary

Currently unused. This will be used to fetch proof ids via RPC.

Test Plan
ninja check

Diff Detail

Event Timeline

Fabien requested changes to this revision.Sep 16 2022, 19:25
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/avalanche/proofpool.cpp
111 ↗(On Diff #34998)

The set has unique keys, you don't need that test at all.

This revision now requires changes to proceed.Sep 16 2022, 19:25
sdulfari added inline comments.
src/avalanche/proofpool.cpp
111 ↗(On Diff #34998)

It's unique by utxo, not proofid.

src/avalanche/proofpool.cpp
111 ↗(On Diff #34998)

std::unordered_set<ProofId, SaltedProofIdHasher> proofIds;

Looks like ProofId is the key to me.

Remove unnecessary dedup logic

This revision is now accepted and ready to land.Sep 20 2022, 06:16