Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shouldn't receive-payjoin.py terminate when non-payjoin tx to address is received? #1661

Open
kristapsk opened this issue Feb 10, 2024 · 1 comment
Labels

Comments

@kristapsk
Copy link
Member

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
@MarnixCroes
Copy link
Contributor

Shouldn't receive-payjoin.py terminate when non-payjoin tx to address is received?

yes, for sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants