mirror of
https://github.com/wownero/tippero.git
synced 2026-10-28 20:18:42 +01:00
payment: fix copy/paste error in moving to accounts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user