Handle crypto reserve as decimal not float

This commit is contained in:
dave 2018-02-10 19:49:17 -08:00
parent 9c6e1056d0
commit 4bdce886ab
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
"password": "pass", "password": "pass",
"port": 12893, "port": 12893,
"precision": 8, "precision": 8,
"reserve": 0.01, "reserve": "0.01",
"link": "https://litecoin.org/", "link": "https://litecoin.org/",
"addrfmt": "^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$" "addrfmt": "^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$"
}, },
@ -18,7 +18,7 @@
"password": "pass", "password": "pass",
"port": 48191, "port": 48191,
"precision": 8, "precision": 8,
"reserve": 0.001, "reserve": "0.001",
"link": "http://bitcoin.org/", "link": "http://bitcoin.org/",
"addrfmt": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$" "addrfmt": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$"
} }

View File

@ -33,7 +33,7 @@ class CryptoWalletRPC(ModuleBase):
coin["username"], coin["username"],
coin["password"], coin["password"],
coin["precision"], coin["precision"],
coin["reserve"], Decimal(coin["reserve"]),
re.compile(coin["addrfmt"])) re.compile(coin["addrfmt"]))
def getRpc(self, currencyAbbr): def getRpc(self, currencyAbbr):