mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
payment: fix copy/paste error in moving to accounts
This commit is contained in:
parent
d455985552
commit
6760756d11
1 changed files with 3 additions and 2 deletions
|
@ -112,7 +112,7 @@ def UpdateCoin(data):
|
||||||
if not recipient:
|
if not recipient:
|
||||||
raise RuntimeError('Payment ID %s not found' % payment_id)
|
raise RuntimeError('Payment ID %s not found' % payment_id)
|
||||||
account = redis_hget('accounts',recipient)
|
account = redis_hget('accounts',recipient)
|
||||||
if accounts == None:
|
if account == None:
|
||||||
raise RuntimeError('No account found for %s' % recipient)
|
raise RuntimeError('No account found for %s' % recipient)
|
||||||
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
|
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
|
||||||
cp.hincrby('confirming_payments',account,amount)
|
cp.hincrby('confirming_payments',account,amount)
|
||||||
|
@ -138,7 +138,8 @@ def UpdateCoin(data):
|
||||||
recipient = GetIdentityFromPaymentID(payment_id)
|
recipient = GetIdentityFromPaymentID(payment_id)
|
||||||
if not recipient:
|
if not recipient:
|
||||||
raise RuntimeError('Payment ID %s not found' % payment_id)
|
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)
|
raise RuntimeError('No account found for %s' % recipient)
|
||||||
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
|
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
|
||||||
pipe.hincrby("balances",account,amount)
|
pipe.hincrby("balances",account,amount)
|
||||||
|
|
Loading…
Reference in a new issue