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

Get rid of the race condition in example_test.py #835

Closed dsaveliev closed 5 years ago

dsaveliev commented 5 years ago

Fixes #796

Snapshot builder depends on getblockcount method, which is trying to get the height of the active chain. On other hands, we're sending brand-new block in the test and thus trying to update the active chain.

I added wait_until check to eliminate this timing problem.

Signed-off-by: Dmitry Saveliev dima@thirdhash.com