From f0eaffeb4e179bbdf52e2b640e26365f7b4b73cd Mon Sep 17 00:00:00 2001
From: holgern <holgernahrstaedt@gmx.de>
Date: Mon, 8 Apr 2019 11:13:24 +0200
Subject: [PATCH] Make a copy of balance objects

* Adapt version number in doc
---
 CHANGELOG.rst   | 1 -
 LICENSE.txt     | 2 +-
 beem/account.py | 6 +++---
 docs/conf.py    | 4 ++--
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index ec9da3c3..9c40f167 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,7 +5,6 @@ Changelog
 * Fix typo (PR #161)
 * Add feature request #162 - one-time private keys can be used in beempy
 * set num_retries to a default of 100, in order to prevent crashing when a wrong node is set
-* Improve all generator functions in account
 * Fix issue #171 - Account.get_balance function shows summed value of liquid balance and unclaimed reward (thanks to @sourovafrin)
 * Use Decimal class to store the amount in the Amount class
 * Add option fixed_point_arithmetic to Amount, which will activate fixed-point arithmetic with the defined asset precision
diff --git a/LICENSE.txt b/LICENSE.txt
index 2f26102e..76bf8541 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,7 +1,7 @@
 The MIT License (MIT)
 
 Copyright (c) 2015 Fabian Schuh
-              2018 Holger Nahrstaedt
+              2018, 2019 Holger Nahrstaedt
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/beem/account.py b/beem/account.py
index 4a282b50..57dd80b2 100644
--- a/beem/account.py
+++ b/beem/account.py
@@ -888,7 +888,7 @@ class Account(BlockchainObject):
         available_amount = []
         for amount in amount_list:
             if amount in self:
-                available_amount.append(self[amount])
+                available_amount.append(self[amount].copy())
         return available_amount
 
     @property
@@ -897,7 +897,7 @@ class Account(BlockchainObject):
         amount_list = ["savings_balance", "savings_sbd_balance"]
         for amount in amount_list:
             if amount in self:
-                savings_amount.append(self[amount])
+                savings_amount.append(self[amount].copy())
         return savings_amount
 
     @property
@@ -906,7 +906,7 @@ class Account(BlockchainObject):
         rewards_amount = []
         for amount in amount_list:
             if amount in self:
-                rewards_amount.append(self[amount])
+                rewards_amount.append(self[amount].copy())
         return rewards_amount
 
     @property
diff --git a/docs/conf.py b/docs/conf.py
index fec76c24..8cf780d7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,7 +49,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = 'beem'
-copyright = '2017, ChainSquad GmbH, 2018, Holger Nahrstaedt'
+copyright = '2017, ChainSquad GmbH, 2018-2019, Holger Nahrstaedt'
 author = 'Holger Nahrstaedt'
 
 # The version info for the project you're documenting, acts as replacement for
@@ -59,7 +59,7 @@ author = 'Holger Nahrstaedt'
 # The short X.Y version.
 version = '0.20'
 # The full version, including alpha/beta/rc tags.
-release = '0.20.2'
+release = '0.20.20'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
-- 
GitLab