Filter heads by invocation of "access.canAppend" during a loading
pashoo2 opened this issue · 3 comments
pashoo2 commented
Why don't to filter the heads as it's already implemented within the "sync" method, that is called during synchronization with another peer?
aphelionz commented
tabcat commented
Trying to understand what the change is being suggested here...
@pashoo2 you are saying we could use the same code that loads entries also to sync entries?
pashoo2 commented
@aphelionz @tabcat sorry i've seen the mention today.
I meant that there is a code that apply filters to heads when a syncronization with another peer is performing, but i suppose it should be done also when reading heads from a local presistant storage to memory.
I don't remember the exact case, but it seems not neccessary to read such heads for consistency of a local statw with another peer sync logic