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

Imported addresses wallet does not find P2PK coinbases in history #6180

Closed
MO207 opened this issue May 26, 2020 · 1 comment
Closed

Imported addresses wallet does not find P2PK coinbases in history #6180

MO207 opened this issue May 26, 2020 · 1 comment
Labels
topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py

Comments

@MO207
Copy link

MO207 commented May 26, 2020

When adding an address in a watch only wallet or Electrum 3.3.8 it doesn't show the correct balance. It only shows newer transactions and funds but ignores older ones.

There are two examples:
1FbPLPR1XoufBQRPGd9JBLPbKLaGjbax5m had a coinbase TX + some later input on 2020.05.26 only this input is shown.

19PYG68GkQ9nY99QeUSyUFy6vWxSyPmXA8 has a coinbase TX but it is not shown at all.

@SomberNight
Copy link
Member

19PYG68GkQ9nY99QeUSyUFy6vWxSyPmXA8 has a coinbase TX but it is not shown at all.

No, that address does not have any transaction history.
Historically, old version of Bitcoin Core, and some block explorers conflated P2PK and P2PKH scripts, associating both with the same address. However, this was confusing as it violated the assumption that the address -> scriptPubKey relation is a function. Nowadays to restore this assumption most software only associate the P2PKH script with the address, and the P2PK script does not have any corresponding address.
Old coinbases such as the ones here used to pay to P2PK scripts.

The blockstream.info block explorer exhibits the same behaviour:
https://blockstream.info/address/19PYG68GkQ9nY99QeUSyUFy6vWxSyPmXA8
https://blockstream.info/tx/ae26f535371eda809a77c958f6f7d3da8697d592de670db7c160cc174e1ffc8a?expand

@SomberNight SomberNight changed the title Electrum doesn't sync older transactions in Watch Only Wallet Imported addresses wallet does not find P2PK coinbases in history May 26, 2020
@SomberNight SomberNight added the topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py
Projects
None yet
Development

No branches or pull requests

2 participants