joinmarket-clientserver
joinmarket-clientserver copied to clipboard
Shouldn't `receive-payjoin.py` terminate when non-payjoin tx to address is received?
Currently it just keeps running after reciving tx to specified address. But that means sender just sent non-payjoin tx and address reuse is bad in any case.
$ ./scripts/receive-payjoin.py testnet-test-123.jmdat 0.001
User data location: /home/user/.joinmarket/
2024-02-10 06:21:43,128 [DEBUG] rpc: getblockchaininfo []
2024-02-10 06:21:43,145 [DEBUG] rpc: listwallets []
2024-02-10 06:21:43,148 [DEBUG] rpc: getwalletinfo []
Enter passphrase to decrypt wallet:
2024-02-10 06:21:44,328 [DEBUG] rpc: listaddressgroupings []
2024-02-10 06:21:44,332 [DEBUG] Fast sync in progress. Got this many used addresses: 11
2024-02-10 06:21:45,103 [DEBUG] rpc: listunspent []
2024-02-10 06:21:45,108 [DEBUG] bitcoind sync_unspent took 0.006094455718994141sec
2024-02-10 06:21:45,151 [INFO] BIP78 daemon listening on port 25183
2024-02-10 06:21:45,152 [INFO] Starting transaction monitor in walletservice
Attempting to start onion service on port: 80 ...
created the onion endpoint, now calling listen
Your hidden service is available. Please
now pass this URI string to the sender to
effect the payjoin payment:
bitcoin:tb1q3l4cz5myypujh6zph37zuyja8egvp3779ykx7q?amount=0.00100000&pj=http://jssfd5rbkp7g4ejktnpgliblelwusmbi3ehpbr3xoqmvgx7ep7muiqqd.onion
Keep this process running until the payment is received.
2024-02-10 06:34:20,170 [INFO] Added utxos=
cc72ac093234017a0b845b68236eded4542fcb3efe8c5ad42113c3ddb103564e:0 - path: m/84'/1'/1'/1/2, address: tb1q3l4cz5myypujh6zph37zuyja8egvp3779ykx7q , value: 100000