question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mismatching BTC deposit addresses

See original GitHub issue

Occasionally 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).

invoice

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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
conscottcommented, Mar 27, 2019

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!

1reaction
astupidmoosecommented, Mar 27, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found