Writer._decode converts results taken from the database before being passed to the user. The vector clock entries are rearranged to match the local feed list. (It looks like the trie is altered as well although I'm not familiar with the trie yet)
It would be nice for the original, remote vector clock to be available in the result, in case the clock was used for anything (I'm using it to hash the feed tips together). For this to be useful, the remote feeds could be returned too (which I guess means passing them via _encodeMap).
Writer._decode
converts results taken from the database before being passed to the user. The vector clock entries are rearranged to match the local feed list. (It looks like the trie is altered as well although I'm not familiar with the trie yet)It would be nice for the original, remote vector clock to be available in the result, in case the clock was used for anything (I'm using it to hash the feed tips together). For this to be useful, the remote feeds could be returned too (which I guess means passing them via _encodeMap).
Something like this perhaps: