Page MenuHomePhabricator

[avalanche] Use a multi_index to track request so it is easy to determine which timed out.

Authored by deadalnix on Mon, Nov 26, 20:45.



As per title. This also adds the requirement that an avaresponse needs to return the round it is responding to. This ensure it is possible to have several queries in flight for a given node if we want to.

Depends on D2122

Test Plan

Updated unit tests accordingly.

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.Mon, Nov 26, 20:45
Herald added a reviewer: Restricted Project. · View Herald TranscriptMon, Nov 26, 20:45
Herald added a subscriber: schancel. · View Herald Transcript
jasonbcox requested changes to this revision.Mon, Nov 26, 21:15
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
132 ↗(On Diff #6112)

What is this and what is it for?

This revision now requires changes to proceed.Mon, Nov 26, 21:15
Fabien requested changes to this revision.Tue, Nov 27, 15:09
Fabien added a subscriber: Fabien.
Fabien added inline comments.
15 ↗(On Diff #6112)

This requires an update in the build documentation
in section "Dependency Build Instructions : Ubuntu & Debian" add libboost-serialization-dev to the list of the required boost library files.

deadalnix requested review of this revision.Wed, Nov 28, 12:52
deadalnix marked an inline comment as done.
deadalnix added inline comments.
15 ↗(On Diff #6112)

It's not required. multi_index is already used in the mempool with no problem.

deadalnix updated this revision to Diff 6152.Wed, Nov 28, 12:56

Remove the whatever field

Fabien accepted this revision as: Fabien.Wed, Nov 28, 13:12
jasonbcox accepted this revision.Wed, Nov 28, 18:44
This revision is now accepted and ready to land.Wed, Nov 28, 18:44
This revision was automatically updated to reflect the committed changes.