payment: fix unlock time semantics
It's a delta height not a block height
This commit is contained in:
parent
750b38d7b1
commit
dc96f38c08
|
@ -99,7 +99,7 @@ def UpdateCoin(data):
|
||||||
continue
|
continue
|
||||||
log_log('UpdateCoin: Looking at payment %s' % str(p))
|
log_log('UpdateCoin: Looking at payment %s' % str(p))
|
||||||
confirmations = height-1-bh
|
confirmations = height-1-bh
|
||||||
confirmations_needed = max(config.payment_confirmations,ut-height)
|
confirmations_needed = max(config.payment_confirmations,ut)
|
||||||
if confirmations >= confirmations_needed:
|
if confirmations >= confirmations_needed:
|
||||||
log_info('Payment %s is now confirmed' % str(p))
|
log_info('Payment %s is now confirmed' % str(p))
|
||||||
new_payments.append(p)
|
new_payments.append(p)
|
||||||
|
@ -135,7 +135,6 @@ def UpdateCoin(data):
|
||||||
tx_hash=p["tx_hash"]
|
tx_hash=p["tx_hash"]
|
||||||
amount=p["amount"]
|
amount=p["amount"]
|
||||||
bh = p["block_height"]
|
bh = p["block_height"]
|
||||||
ut = p["unlock_time"]
|
|
||||||
try:
|
try:
|
||||||
recipient = GetIdentityFromPaymentID(payment_id)
|
recipient = GetIdentityFromPaymentID(payment_id)
|
||||||
if not recipient:
|
if not recipient:
|
||||||
|
|
Loading…
Reference in New Issue