withdraw: fix balances/account mismatch

This commit is contained in:
moneromooo 2015-02-02 20:43:17 +00:00
parent b876f1e523
commit 1e29558c5e

View file

@ -78,7 +78,7 @@ def Withdraw(link,cmd):
account = GetAccount(identity)
try:
balance = redis_hget('accounts',account)
balance = redis_hget('balances',account)
if balance == None:
balance = 0
balance=long(balance)