BBVA / qed

The scalable, auditable and high-performance tamper-evident log project
https://qed.readthedocs.io/
Apache License 2.0
94 stars 19 forks source link

Move restore validation to upper layer #152

Closed aalda closed 4 years ago

aalda commented 5 years ago

We should remove the ValidateF function from the LoadSnapshot signature in the ManagedStore and put it in an upper layer, ¿maybe the ChunkWriter?

In this way, we achieve two things: on the one hand, we separate a functionality related to the FSM from the pure persistence layer; on the other, we check the existence of gaps in the source node before sending the stream of transactions to the replica.

gdiazlo commented 4 years ago

Closed by #171