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 floating finalization_state_restoration.py #931

Closed frolosofsky closed 5 years ago

frolosofsky commented 5 years ago

Fixes floating tests by adjusting blocks count generation: after deposit is set up, generate blocks up to the epoch where finalizer starts voting, and stop right on the checkpoint. That ensures we don't miss any vote when generate further epochs.

Fixes #927.

frolosofsky commented 5 years ago

Every test passed 50 runs on Travis and zillion runs on my machine.

https://travis-ci.com/dtr-org/unit-e/builds/107746620

frolosofsky commented 5 years ago

@dsaveliev moved #930 fix to his PR (#921). At the moment this PR fixes only one test!