Skip to content

Conversation

@kcalvinalvin
Copy link
Contributor

Since we're able to generate the targets from the ttls, we don't ask for them
if we're still downloading ttls.

Since wire.TTLInfo contains all the information we need to sort the
ttls to targets at the given blocks, we which to use them directly
instead of having a type defined.
Since the ttls can be used to calculate the targets, don't ask for the
targets when we're able to download the ttls.
The UtreexoTTLCache will process and keep track of any leaves that
should be cached and will return getutreexoproof messages based on the
leaves it has cached.

This replaces all other bits of caches that exist in other parts of the
codebase as of this commit.
Since we'll be using the UtreexoTTLCache, we no longer have to
communicate the ttl data. Rather we now have to communicate the
processed data thus we add addLeaves and uncacheHashes.
Instead of keeping track of the ttls in the sync manager, we now
delegate that role to the utreexo ttl cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant