dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Fix finalization state restoration logic #959

Closed frolosofsky closed 5 years ago

frolosofsky commented 5 years ago

The issue happened because node was trying to recover finalization states for block indexes which have never had commits or full blocks.

  1. Do not try to read the block which has no data.
  2. Extend finalization_state_restoration test.

Fixes #955.

Signed-off-by: Stanislav Frolov stanislav@thirdhash.com

frolosofsky commented 5 years ago

@kostyantyn I added that to my TODO list. If you find this issue super critical, feel free to fill an issue.