rusk
rusk copied to clipboard
Implement resource discovery by "Flood with Random Walk" algorithm
Resolves #1528
Acceptance criteria:
- [x]
GetBlocks
message flow works properly as usual. It should not triggerflood_request
- [x]
GetData
usesflood_request
to retrieve a resource (block/transaction) from a distant peer. - [x]
GetData
limits aflood_request
by TTL value.
NB: Testing the impl of this approach revealed a race condition that was (most probably) previously happening too. It'll be addressed with https://github.com/dusk-network/rusk/issues/1722