Closed dariusc93 closed 3 months ago
This PR simplifies some parts of bitswap WantSession by:
WantSession
IndexMap
discovery
NeedBlock
Additionally, we will only track the connection id as the behaviour would have no need to track the addresses themselves.
This PR simplifies some parts of bitswap
WantSession
by:IndexMap
so we can track the order of the peer and act accordingly.discovery
to an enum to track when to use a timer to emit aNeedBlock
based on specific conditionsAdditionally, we will only track the connection id as the behaviour would have no need to track the addresses themselves.