From 6a68a0c8b62c7f4364b32890ee7eba343dbb7954 Mon Sep 17 00:00:00 2001 From: The Antius Date: Sun, 27 Jul 2014 03:31:45 +0200 Subject: [PATCH 1/2] Change decodeBase58 --- src/addresses.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/addresses.py b/src/addresses.py index 5f666543..b9135d04 100644 --- a/src/addresses.py +++ b/src/addresses.py @@ -42,14 +42,12 @@ def decodeBase58(string, alphabet=ALPHABET): - `alphabet`: The alphabet to use for encoding """ base = len(alphabet) - strlen = len(string) num = 0 - + try: - power = strlen - 1 for char in string: - num += alphabet.index(char) * (base ** power) - power -= 1 + num *= base + num += alphabet.index(char) except: #character not found (like a space character or a 0) return 0 -- 2.45.1 From 807f2fee8a51d9823628c30deff05124599ace6b Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 4 Aug 2014 18:35:26 -0400 Subject: [PATCH 2/2] increment version number to 0.4.3 --- src/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.py b/src/shared.py index 3f60a852..c82bf73a 100644 --- a/src/shared.py +++ b/src/shared.py @@ -1,4 +1,4 @@ -softwareVersion = '0.4.2' +softwareVersion = '0.4.3' verbose = 1 maximumAgeOfAnObjectThatIAmWillingToAccept = 216000 # Equals two days and 12 hours. lengthOfTimeToLeaveObjectsInInventory = 237600 # Equals two days and 18 hours. This should be longer than maximumAgeOfAnObjectThatIAmWillingToAccept so that we don't process messages twice. -- 2.45.1