From 0d72c67f487dcb10911a79785833dcc215367304 Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Fri, 12 Jun 2020 07:49:06 -0700 Subject: [PATCH] [validator] Make amount == min self del if loaded from chain * bump version --- pyhmy/_version.py | 2 +- pyhmy/validator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhmy/_version.py b/pyhmy/_version.py index 76e77cf..d113bec 100644 --- a/pyhmy/_version.py +++ b/pyhmy/_version.py @@ -7,5 +7,5 @@ Provides pyhmy version information. from incremental import Version -__version__ = Version('pyhmy', 20, 5, 10) +__version__ = Version('pyhmy', 20, 5, 12) __all__ = ["__version__"] diff --git a/pyhmy/validator.py b/pyhmy/validator.py index 4215801..a7fe9e5 100644 --- a/pyhmy/validator.py +++ b/pyhmy/validator.py @@ -616,7 +616,7 @@ class Validator: 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._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_change_rate = Decimal(info['max-change-rate']).normalize()