[validator] Make amount == min self del if loaded from chain

* bump version
bech32
Daniel Van Der Maden 5 years ago
parent 005121e74b
commit 0d72c67f48
  1. 2
      pyhmy/_version.py
  2. 2
      pyhmy/validator.py

@ -7,5 +7,5 @@ Provides pyhmy version information.
from incremental import Version from incremental import Version
__version__ = Version('pyhmy', 20, 5, 10) __version__ = Version('pyhmy', 20, 5, 12)
__all__ = ["__version__"] __all__ = ["__version__"]

@ -616,7 +616,7 @@ class Validator:
self._min_self_delegation = convert_atto_to_one(info['min-self-delegation']).normalize() self._min_self_delegation = convert_atto_to_one(info['min-self-delegation']).normalize()
self._max_total_delegation = convert_atto_to_one(info['max-total-delegation']).normalize() self._max_total_delegation = convert_atto_to_one(info['max-total-delegation']).normalize()
self._inital_delegation = Decimal(0) # Since validator exists, set initial delegation to 0 self._inital_delegation = self._min_self_delegation # Since validator exists, set initial delegation to 0
self._max_rate = Decimal(info['max-rate']).normalize() self._max_rate = Decimal(info['max-rate']).normalize()
self._max_change_rate = Decimal(info['max-change-rate']).normalize() self._max_change_rate = Decimal(info['max-change-rate']).normalize()

Loading…
Cancel
Save