Closed staltz closed 3 years ago
This change is very important to fix the tests in ssb-ebt (I tried it out, tests pass).
Wait, this is not entirely true. Some tests in ssb-ebt that use the fixtures generator (ssb-generate) are failing.
Yes! And it gives me a bit more confidence to deprecate some things.
TL;DR:
layered.hopsStream
gives us "reduced" data of the follow graph from the perspective of thesbot.id
peer, butlegacy.stream
gives us "non-reduced" updates on the individual edges of the follow graph, from the perspective of the edge outgoing peer.This was important because we have to call
sbot.replicate.block(orig, dest, ...)
even iforig !== sbot.id
anddest !== sbot.id
. Currently, there is no non-legacy API that provides us this kind of information, so that's why I had to uselegacy.stream
.This change is very important to fix the tests in ssb-ebt (I tried it out, tests pass).
Eventually, the legacy API will be deleted and I'll make another suitable API, and this file glue/replicate.js will also be deleted. But for now, I just want to get tests in a good shape so that we are confident to make modifications.