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

Synchronize the wallet to the active chain before getting stakeable coins #975

Closed Nizametdinov closed 5 years ago

Nizametdinov commented 5 years ago

Fixes #940. proposer_stakable_balance.py might fail if the call of proposerstatus happens at the moment when the node has proposed a new block but the wallet has not been updated yet. This PR adds wallet->BlockUntilSyncedToCurrentChain() which does not give 100% protection but makes such situations very unlikely.

scravy commented 5 years ago

utACK 1996a8b976460dbff22da4015c130102e8c224c7