feat: refactor message receiving code
The primary motivation for this was to only account for wanted blocks in the engine.
This change also untangles some code, fixes some todos, and avoids reusing receiveBlocksFrom for processing local blocks.
Any reason not to merge? (I see it's a draft PR)
Any reason not to merge? (I see it's a draft PR)
I wanted to get in a quick fix first for the release. I left it as a draft due to that last question.
Let's wait until we get #413 fixed before merging this (so we don't have to fork a patch release branch).
This repository has been moved to https://github.com/ipfs/go-libipfs. There is not an easy way to transfer PRs, so if you would like to continue with this PR then please re-open it in the new repository and link to this PR.