|
|
|
@ -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)
|
|
|
|
|