...
 
Commits (7)
## v0.7.3 (25th July 2019)
#239: Bug fix release for broken successives transactions due to wrongly calculated pending inputs:
- remove already used inputs: restore previous behaviour which haven’t been kept the same during the migration
- `enumerate()` wrongly moved to the non appropriate for loop
## v0.7.2 (25th June 2019)
- #233: fix round passed amount and amoundUD floats × by 100
## v0.7.1 (29th May 2019)
- Fix transaction document generation from DuniterPy
......
......@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setup(
name="silkaj",
version="0.7.1",
version="0.7.3",
author="Moul",
author_email="moul@moul.re",
description="Command line client for Duniter",
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License
along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
"""
SILKAJ_VERSION = "0.7.1"
SILKAJ_VERSION = "0.7.3"
G1_SYMBOL = "Ğ1"
GTEST_SYMBOL = "ĞTest"
G1_DEFAULT_ENDPOINT = "g1.duniter.org", "443"
......
......@@ -149,9 +149,9 @@ async def get_sources(pubkey):
# add pending output
pending_sources = list()
for i, pending in enumerate(pendings):
for pending in pendings:
identifier = pending["hash"]
for output in pending["outputs"]:
for i, output in enumerate(pending["outputs"]):
outputsplited = output.split(":")
if outputsplited[2] == "SIG(" + pubkey + ")":
inputgenerated = InputSource(
......@@ -168,8 +168,8 @@ async def get_sources(pubkey):
pending_sources.append(InputSource.from_inline(input))
# remove input already used
for input in listinput:
if input in pending_sources:
for input in pending_sources:
if input in listinput:
listinput.remove(input)
return listinput, amount
......
......@@ -108,9 +108,9 @@ async def transaction_amount(amount, amountUD, allSources):
if not (amount or amountUD or allSources):
message_exit("--amount nor --amountUD nor --allSources is set")
if amount:
return amount * 100
return round(amount * 100)
if amountUD:
return amountUD * await UDValue().ud_value
return round(amountUD * await UDValue().ud_value)
def check_transaction_values(
......