payment: fix copy/paste error in moving to accounts

This commit is contained in:
moneromooo 2015-02-02 17:48:37 +00:00
parent d455985552
commit 6760756d11

View file

@ -112,7 +112,7 @@ def UpdateCoin(data):
if not recipient:
raise RuntimeError('Payment ID %s not found' % payment_id)
account = redis_hget('accounts',recipient)
if accounts == None:
if account == None:
raise RuntimeError('No account found for %s' % recipient)
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
cp.hincrby('confirming_payments',account,amount)
@ -138,7 +138,8 @@ def UpdateCoin(data):
recipient = GetIdentityFromPaymentID(payment_id)
if not recipient:
raise RuntimeError('Payment ID %s not found' % payment_id)
if accounts == None:
account = redis_hget('accounts',recipient)
if account == None:
raise RuntimeError('No account found for %s' % recipient)
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
pipe.hincrby("balances",account,amount)