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

Allow node to deposit after withdraw #917

Closed Gnappuraz closed 5 years ago

Gnappuraz commented 5 years ago

This PR correctly resets the ValidatorState after a node withdraws, without this the finalizer would be in a sort of unfinished semi-inconsistent state after a withdraw. This is accomplished reseting the ValidatorState after a withdraw.

Pre-requisite for https://github.com/dtr-org/unit-e/pull/894