From e1859a0b6aeedd4ea9a32634f65408f025ab1822 Mon Sep 17 00:00:00 2001 From: Holger <holger@nahrstaedt.de> Date: Sun, 30 Sep 2018 12:21:29 +0200 Subject: [PATCH] Release 0.20.5 0.20.5 ------ * fix get_effective_vesting_shares() --- CHANGELOG.rst | 5 +++++ beem/account.py | 2 +- beem/version.py | 2 +- beemapi/version.py | 2 +- beembase/version.py | 2 +- beemgraphenebase/version.py | 2 +- setup.py | 2 +- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 207cc5b6..f4a51fc3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,9 +1,14 @@ Changelog ========= +0.20.5 +------ +* fix get_effective_vesting_shares() + 0.20.4 ------ * get_effective_vesting_shares() added to calculated max_mana correctly * dict key words adapted to steemd for get_manabar() and get_rc_manabar() +* Voting mana fixed for 0 SP accounts * comment_benefactor_reward adapted for snapshot * Custom_json RC costs added to print_info diff --git a/beem/account.py b/beem/account.py index 20b815ed..49864b97 100644 --- a/beem/account.py +++ b/beem/account.py @@ -448,7 +448,7 @@ class Account(BlockchainObject): """Returns the effective vesting shares""" vesting_shares = int(self["vesting_shares"]) if "delegated_vesting_shares" in self and "received_vesting_shares" in self: - vesting_shares -= int(self["delegated_vesting_shares"]) + int(self["received_vesting_shares"]) + vesting_shares = vesting_shares - int(self["delegated_vesting_shares"]) + int(self["received_vesting_shares"]) if self["next_vesting_withdrawal"].timestamp() > 0 and "vesting_withdraw_rate" in self and "to_withdraw" in self and "withdrawn" in self: vesting_shares -= min(int(self["vesting_withdraw_rate"]), int(self["to_withdraw"]) - int(self["withdrawn"])) diff --git a/beem/version.py b/beem/version.py index f4882875..60b46443 100644 --- a/beem/version.py +++ b/beem/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/beemapi/version.py b/beemapi/version.py index f4882875..60b46443 100644 --- a/beemapi/version.py +++ b/beemapi/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/beembase/version.py b/beembase/version.py index f4882875..60b46443 100644 --- a/beembase/version.py +++ b/beembase/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/beemgraphenebase/version.py b/beemgraphenebase/version.py index f4882875..60b46443 100644 --- a/beemgraphenebase/version.py +++ b/beemgraphenebase/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/setup.py b/setup.py index b5668ed5..a0cbb357 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ except LookupError: ascii = codecs.lookup('ascii') codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs')) -VERSION = '0.20.4' +VERSION = '0.20.5' tests_require = ['mock >= 2.0.0', 'pytest', 'pytest-mock', 'parameterized'] -- GitLab