Page MenuHomePhabricator

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

Authored by deadalnix on Nov 26 2018, 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
Lint Not Applicable
Tests Not Applicable

Event Timeline

jasonbcox requested changes to this revision.Nov 26 2018, 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.Nov 26 2018, 21:15
Fabien requested changes to this revision.Nov 27 2018, 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 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.

Remove the whatever field

This revision is now accepted and ready to land.Nov 28 2018, 18:44
This revision was automatically updated to reflect the committed changes.