This commit is contained in:
1
qt.py
1
qt.py
@@ -705,7 +705,6 @@ class BalWindow(Logger):
|
|||||||
return self.willitems
|
return self.willitems
|
||||||
|
|
||||||
def check_will(self):
|
def check_will(self):
|
||||||
print("check_will")
|
|
||||||
return Will.is_will_valid(
|
return Will.is_will_valid(
|
||||||
self.willitems,
|
self.willitems,
|
||||||
self.block_to_check,
|
self.block_to_check,
|
||||||
|
|||||||
7
will.py
7
will.py
@@ -82,8 +82,6 @@ class Will:
|
|||||||
for txin in will[wid].tx.inputs():
|
for txin in will[wid].tx.inputs():
|
||||||
txid = txin.prevout.txid.hex()
|
txid = txin.prevout.txid.hex()
|
||||||
if txid in will:
|
if txid in will:
|
||||||
# print(will[txid].tx.outputs())
|
|
||||||
# print(txin.prevout.out_idx)
|
|
||||||
change = will[txid].tx.outputs()[txin.prevout.out_idx]
|
change = will[txid].tx.outputs()[txin.prevout.out_idx]
|
||||||
txin._trusted_value_sats = change.value
|
txin._trusted_value_sats = change.value
|
||||||
try:
|
try:
|
||||||
@@ -394,10 +392,8 @@ class Will:
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
if wallet.db.get_transaction(wi._id):
|
if wallet.db.get_transaction(wi._id):
|
||||||
print("search rai status confirmed")
|
|
||||||
wi.set_status("CONFIRMED", True)
|
wi.set_status("CONFIRMED", True)
|
||||||
else:
|
else:
|
||||||
print("search rai status invalidated")
|
|
||||||
wi.set_status("INVALIDATED", True)
|
wi.set_status("INVALIDATED", True)
|
||||||
|
|
||||||
for child in wi.search(all_inputs):
|
for child in wi.search(all_inputs):
|
||||||
@@ -422,9 +418,7 @@ class Will:
|
|||||||
|
|
||||||
# check if transactions are stil valid tecnically valid
|
# check if transactions are stil valid tecnically valid
|
||||||
def check_invalidated(willtree, utxos_list, wallet):
|
def check_invalidated(willtree, utxos_list, wallet):
|
||||||
print("utxo list",utxos_list)
|
|
||||||
for wid, w in willtree.items():
|
for wid, w in willtree.items():
|
||||||
print("check transaction",w._id)
|
|
||||||
#if not w.father:
|
#if not w.father:
|
||||||
for inp in w.tx.inputs():
|
for inp in w.tx.inputs():
|
||||||
inp_str = Util.utxo_to_str(inp)
|
inp_str = Util.utxo_to_str(inp)
|
||||||
@@ -436,7 +430,6 @@ class Will:
|
|||||||
elif height == 0:
|
elif height == 0:
|
||||||
w.set_status("PENDING", True)
|
w.set_status("PENDING", True)
|
||||||
else:
|
else:
|
||||||
print("check_invalidate status confirmed",w._id)
|
|
||||||
w.set_status("CONFIRMED", True)
|
w.set_status("CONFIRMED", True)
|
||||||
#else:
|
#else:
|
||||||
# print("father",w.father)
|
# print("father",w.father)
|
||||||
|
|||||||
Reference in New Issue
Block a user