File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1329,11 +1329,19 @@ def pay_multi( self,
1329
1329
response = requests .post (url = melt_url ,json = data_to_send ,headers = headers )
1330
1330
print (response .json ())
1331
1331
payment_json = response .json ()
1332
- if payment_json ['paid' ]:
1333
- print ("paid ok" )
1332
+ #TODO Need to do some error checking
1334
1333
print ("need to do some error checking" )
1335
1334
# {'detail': 'Lightning payment unsuccessful. no_route', 'code': 20000}
1336
1335
# add keep proofs back into selected keyset proofs
1336
+ if payment_json .get ("paid" ,False ):
1337
+ print ("lightning paid ok" )
1338
+ else :
1339
+ print ("payment did not go through" )
1340
+ # Add back in spend proofs
1341
+ for each in spend_proofs :
1342
+ proofs_from_keyset .append (each )
1343
+
1344
+
1337
1345
for each in keep_proofs :
1338
1346
proofs_from_keyset .append (each )
1339
1347
# print("self proofs", self.proofs)
@@ -1819,7 +1827,7 @@ def swap_multi_each(self):
1819
1827
# return
1820
1828
# All the proofs are verified, we are good to go for the swap
1821
1829
# In multi_each we are going to swap for each proof
1822
- #FIXME do a fix on the events here
1830
+
1823
1831
1824
1832
for each_keyset in keyset_proofs :
1825
1833
You can’t perform that action at this time.
0 commit comments