decentralized-identity / sidetree-reference-impl

Sidetree Reference Implementation
Apache License 2.0
5 stars 7 forks source link

Prevent last processed transaction bug when unexpected crash happens during fast init #25

Open isaacJChen opened 4 years ago

thehenrytsai commented 2 years ago

I think the issue here is that if fast initialization crashes, upon reboot, the service will assume everything is great and start processing from tail, even though fast processing hadn't reached the genesis block yet.

A fix would to have an explicit flag in DB indicating fast init state.