Mismatching BTC deposit addresses
See original GitHub issueOccasionally when paying an invoice, I see the the BTC (On-Chain)
Addresses listed is actually different than the address I deposited to listed under On-Chain payments
(see image below).
It seems to happen about 25% of the time, and I am not sure why. I would expect these two addresses listed to always be the same. The address displayed in the checkout page is the On-Chain payments
address.
Environment
Ubuntu 16.04
BTCPay Server master
at be90172840f1a891da2ca6ace898bbac04b337c8
Manual Deploy with Bitcoin Core Testnet master
/ NBxplorer master
To Reproduce
- Turn on 0-conf
- Pay several $1.0 invoices on testnet
- Inspect Invoice Details for Mismatch
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why is my BTC address different every time I make a ...
,But BTC was designed so thhat a different address can be used for each deposit including "change" returned to the sending account when...
Read more >What happens if you send cryptocurrency to a deposit ...
In essence, if you transfer cryptocurrency to the incorrect address, you are sending it to the incorrect recipient, and it is up to...
Read more >Receiving address changed
Your address for Bitcoin and Bitcoin-based crypto assets changes every time you receive a transaction. For other crypto assets (Ethereum, ...
Read more >Address reuse - Bitcoin Wiki
It is an unintended practice, abusing the privacy and security of the participants of the transactions as well as future holders of their...
Read more >Why Does My Bitcoin Wallet Address Keep ... - YouTube
00:00 Introduction 00:17 Common Questions About Bitcoin Addresses 01:10 The Reason Why Bitcoin Wallets Generate New (Unique) Receiving ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahhhh, okay that makes sense.
In my test I was making partial payments on purpose, but with address re-use. I didn’t notice the deposit addresses updating on partial pay, just the balance.
I suppose the UI can look a little confusing when this is done, since it lists an unused Onchain deposit address for a fully paid invoice.
I know address re-use should be discoured, so I was doing things ‘the wrong way’, but if there is any action to take here I might suggest listing all deposit addresses associated to an invoice, although I know it’s pain the for data structures in place. Your call.
I will go ahead and close this. Thank you all for the quick response!
This is normal for partial payments.
Partial payments generate a second address to be used for the remainder of the payment. Your second payment should be going to the new address generated under “paid summary” vs the used address.