mirror of
https://github.com/wownero/tippero.git
synced 2026-10-28 20:18:42 +01:00
payment: fix unlock time semantics
It's a delta height not a block height
This commit is contained in:
@@ -99,7 +99,7 @@ def UpdateCoin(data):
|
||||
continue
|
||||
log_log('UpdateCoin: Looking at payment %s' % str(p))
|
||||
confirmations = height-1-bh
|
||||
confirmations_needed = max(config.payment_confirmations,ut-height)
|
||||
confirmations_needed = max(config.payment_confirmations,ut)
|
||||
if confirmations >= confirmations_needed:
|
||||
log_info('Payment %s is now confirmed' % str(p))
|
||||
new_payments.append(p)
|
||||
@@ -135,7 +135,6 @@ def UpdateCoin(data):
|
||||
tx_hash=p["tx_hash"]
|
||||
amount=p["amount"]
|
||||
bh = p["block_height"]
|
||||
ut = p["unlock_time"]
|
||||
try:
|
||||
recipient = GetIdentityFromPaymentID(payment_id)
|
||||
if not recipient:
|
||||
|
||||
Reference in New Issue
Block a user