|
282 | 282 | 'psbt_26': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('022200' * 40), |
283 | 283 | 'signed_psbt_1': 'cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt' + ('718000' * 120), |
284 | 284 | 'htlc_max_msat': 18446744073709552000, |
| 285 | + 'proof_1': '0473656e64' + ('proof00001' * 10), |
285 | 286 | } |
286 | 287 |
|
287 | 288 | # Used for collecting values from responses and replace them with NEW_VALUES_LIST before updating examples in schema files |
@@ -642,6 +643,7 @@ def generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind): |
642 | 643 | 'cltv_expiry': blockheight + 18 + 6, |
643 | 644 | 'partid': 1, |
644 | 645 | 'groupid': 0}) |
| 646 | + bip353_result = update_example( node=l1, method='fetchbip353', params={ 'address': '[email protected]'}, description=[ 'Example of fetching BIP-353 payment details.']) |
645 | 647 | REPLACE_RESPONSE_VALUES.extend([ |
646 | 648 | {'data_keys': ['destination'], 'original_value': address_l41['bech32'], 'new_value': NEW_VALUES_LIST['destination_6']}, |
647 | 649 | {'data_keys': ['tx'], 'original_value': close_res1['tx'], 'new_value': NEW_VALUES_LIST['close1_tx']}, |
@@ -735,6 +737,7 @@ def generate_transactions_examples(l1, l2, l3, l4, l5, c25, bitcoind): |
735 | 737 | {'data_keys': ['completed_at'], 'original_value': waitsendpay_res1['completed_at'], 'new_value': NEW_VALUES_LIST['time_at_900']}, |
736 | 738 | {'data_keys': ['payment_preimage'], 'original_value': xpay_res1['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_xp_1']}, |
737 | 739 | {'data_keys': ['payment_preimage'], 'original_value': xpay_res2['payment_preimage'], 'new_value': NEW_VALUES_LIST['payment_preimage_xp_2']}, |
| 740 | + {'data_keys': ['proof'], 'original_value': bip353_result['proof'], 'new_value': NEW_VALUES_LIST['proof_1']}, |
738 | 741 | ]) |
739 | 742 | logger.info('Simple Transactions Done!') |
740 | 743 | return c23_2, c23res2, c34_2, inv_l11, inv_l21, inv_l22, inv_l31, inv_l32, inv_l34 |
@@ -1360,6 +1363,7 @@ def generate_splice_examples(node_factory, bitcoind): |
1360 | 1363 | {'data_keys': ['psbt'], 'original_value': signpsbt_res1['signed_psbt'], 'new_value': NEW_VALUES_LIST['signed_psbt_1']}, |
1361 | 1364 | {'data_keys': ['psbt'], 'original_value': spupdate1_res1['psbt'], 'new_value': NEW_VALUES_LIST['psbt_1']}, |
1362 | 1365 | {'data_keys': ['any', 'psbt'], 'original_value': spupdate1_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_2']}, |
| 1366 | + {'data_keys': ['psbt'], 'original_value': spupdate2_res2['psbt'], 'new_value': NEW_VALUES_LIST['psbt_2']}, |
1363 | 1367 | ]) |
1364 | 1368 | logger.info('Splice Done!') |
1365 | 1369 | except Exception as e: |
|
0 commit comments