Author

Topic: Why Coinbase Transaction does not show up in Electrum Wallet ? (Read 229 times)

legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
How the Bitcoin Explorer really work ?  Is the Bitcoin explorer pulling the data from backend of the Bitcoin database ? 

Depending on the implementation, some get data from locally running bitcoin core or the blockchain the local bitcoin has downloaded, or (also) from an Electrum server database, or it can also build its own database off this kind of data.
The data a block explorer offers is clearly from the blockchain, but, for easier retrieval a (another) local database is needed, to group the blockchain data in a different way.

I want to create a proper Bitcoin Block Explorer, how to start it ?  Where is the code of Block Explorer ?

You can look into the code of existing block explorers:
https://github.com/mempool/mempool
https://github.com/janoside/btc-rpc-explorer

Can some one help me out to create a good Block Explorer ?  Once you help me and the Block Explorer running from new Node and server, I will be able to pay out some reward later but for now you can give a support Charity wise.

Since you seem to still have a lot to ask and learn until you understand how bitcoin works, I think that nobody will spend time with you.
So start with the beginning and master bitcoin first. Then, if you have programming skills, you'll be able to make a blockchain explorer too if you want.
legendary
Activity: 3472
Merit: 10611
as for the lack of seeing the genesis block..
and more simpler reason.. some lazy coded wallets start at block 1.. not 0, because no one thought to check that there is actually a block 0, and instead just had a counter start at 1 for "the first block"
Considering the fact that the output of block #0 can not be spent by design, there is no point for "wallets" to show that unspedable UTXO as part of the wallet content.
It is different for block explorers though since they are showing history and they should add an exception for that output and include it in the history but not show it in the balance.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
p2ip was not about paying a IP instead of a public key..
You talk a lot, but I can't say the same about your reading. You're disappointingly twisting my words. Classic, desperate franky. I've never said such thing, and since you're British as you've said, there's no room to question your English. You're just deliberately attacking me for personal reasons.

yes we can, challenge accepted
The software, not a YouTube video about the software. Point me the line that I'm wrong: https://bitcointalksearch.org/topic/v01-68121. Or just don't. Find life.
jr. member
Activity: 56
Merit: 7
Very information. Thanks a lots to everyone.

How the Bitcoin Explorer really work ?  Is the Bitcoin explorer pulling the data from backend of the Bitcoin database ? 
I want to create a proper Bitcoin Block Explorer, how to start it ?  Where is the code of Block Explorer ? Can some one help me out to create a good Block Explorer ?  Once you help me and the Block Explorer running from new Node and server, I will be able to pay out some reward later but for now you can give a support Charity wise.

May be I will setup a new project that will generate some money and run the Block Explorer.

Thanks.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
as for the lack of seeing the genesis block..
and more simpler reason.. some lazy coded wallets start at block 1.. not 0, because no one thought to check that there is actually a block 0, and instead just had a counter start at 1 for "the first block"

LOL!
I didn't look into their code, but yeah, sloppy programming, even at this level, doesn't have to be ruled out (see what happens with DeFi and such).
But really, even if one would not be sloppy, it's easier to ignore the funds from the first block since they cannot be spent anyway. And it can make sense too (from the wallet point of view).
legendary
Activity: 4410
Merit: 4766
As said, some wallets don't show/count correctly P2PK outputs.
Even more, some ignore the genesis block coins; even some block explorers do that (eg. SoChain). The reason, afaik, is that the genesis coins cannot be spent.
as for the lack of seeing the genesis block..
and more simpler reason.. some lazy coded wallets start at block 1.. not 0, because no one thought to check that there is actually a block 0, and instead just had a counter start at 1 for "the first block"
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
When I put the Genesis Block  in the Electrum it shows that there around some Bitcoin people has sents to the Genesis Block address  but it does not show the 50 Coinbase transaction. Which supposed to be the first Bitcoin transaction.

I also put many other address but the result is the same. Some earlier Bitcoin address show the balance is 0.0 but in the Block explorer it shows that coinbase transaction of 50 Bitcoin is there but not spent.

What is the fact ?

As said, some wallets don't show/count correctly P2PK outputs.
Even more, some ignore the genesis block coins; even some block explorers do that (eg. SoChain). The reason, afaik, is that the genesis coins cannot be spent.
legendary
Activity: 4410
Merit: 4766
derailing thread
says the guy that brought up pay2ip as a reason to blame electrums inability to read pay2pk(facepalm)
We can look into the source code of the very first software release if you disagree.
yes we can, challenge accepted

https://youtu.be/W3rb_26QswM?t=260

oh and as for your privacy thing
this is not about telling everyone your IP. not everyone knows or gets to see your IP. you are only telling your prefered person the IP.
again its not about having a destination address of funds as an ip address

its about choosing to connect directly to a service you know of who happily wants you to connect to them..

well that was the initial idea.
hense why satoshi set up the cod as like a merchant tools mechanism so a merchant can be connected to and then send the customer a public key(bitcoin address) the merchant wants to be paid with

and yea i made things easy. instead of a wall of text code for you to read i found a video summarising the code
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
it was a privacy thing. of not annoucing a TX until its in a block by not letting everyone have a copy before the block its confirmed in..
No. Pay-to-IP was a function that transmitted public keys. Satoshi client paid to that public key once received. At least that's what Raghav Sood says on Stackexchange:
the reason electrum does not show p2pk.. is not due to pools. its not due to mining.. its due to electrum. and only electrum not being coded well
And nobody said otherwise. It's definitely an Electrum's fault. You just don't have anything to say, as usual, and derail the thread.
legendary
Activity: 4410
Merit: 4766
That's because Electrum doesn't recognize P2PK (Pay-to-public-key) outputs, and the first Bitcoin client paid that way when a node solved a block, or when one node paid another via TCP/IP. Eventually, Pay-to-IP was phased out, and miners used other mining software which used P2PKH (Pay-to-public-key-hash).

I had the same question about a year and a half ago: https://bitcointalksearch.org/topic/electrum-doesnt-show-rewarded-coins-5327269

wrong
1. bitcoin core, other wallets and miners do understand P2PK because they do show p2pk transactions.. only electrum does not. meaning the fault lays within electrum.
(dont play your agenda game of pretending bitcoin is broke but your favoured service is good, especially when your favoured service is the thing that is broke!)

lets sidestep into blackhatcoiners offtopic/meader and misunderstanding of the p2ip which is not even something the topic creator mentioned. but because blackhat did and said many mistakes, needs to be rectified for other readers sake
2. pay to IP was not about some special way to confirm transactions outside of usual mining rules
pay-to-ip was a way to just send a unconfirmed unbroadcast signed TX to another user directly instead of the whole network seeing it (pre-confirm via peer-to-peer relaying to everyone. )
it was a privacy thing. of not annoucing a TX until its in a block by not letting everyone have a copy before the block its confirmed in..
this would mean the recipient got a unbroadcast/unconfirmed signed tx, which he can then broadcast to everyon tolet then put it in thieir block..when he wants to get it confirmed
or solo mining it where people only get to see it when the recipient or sender included it their own block they solved, as they were the only ones with it pre-confirm.
back in the old days there was 'no pools' it was solo mining.
pay-to-ip was not about paying in an immutable/confirmed way to someone in a different method other than the block solving method that existed at the time(solo) was more about giving it to only to a select few people(privacy) so that not everyone seen the signed tx before it appeared ni a blcok, and if those people included it in their block attempts and their blocks confirmed, then that transaction is confirmed and finally seen by the network for the first time,  

(you should know this very well with your offchain favoured system (of the privacy aspect of the bitcoin network not seeing it until close session broadcast) it has nothing to do with deeming the other person as confirmed immutably paid by pretending the unconfirmed payment is a final settlement(which foolishly LN tries to infer.. which is where you are mistaken, but should have learned by now))

3. when most blocks became solved by pools and not solo. the usefulness of pay to ip became useless, because the chances of someone then solo mining to include the TX (to get paid) became less. thus people had to broadcast to the network publicly for the chance for it to get into a block

anyways... back to talking about the P2pk:
4. pools even now can still accept and collate into blocks p2pk transactions. mining (hashing blocks) didnt change due to the creation of newer tx formats


now that has been clarified
the reason electrum does not show p2pk.. is not due to pools. its not due to mining.. its due to electrum. and only electrum not being coded well

as admitted by blackhatcoiner in his post he made ages before. other software does show the 50btc coinbase rewards. yep core, blockexplorer, blockhain.info, and so many more software do show it.. so electrum not showing it is a flaw of electrum

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
That's because Electrum doesn't recognize P2PK (Pay-to-public-key) outputs, and the first Bitcoin client paid that way when a node solved a block, or when one node paid another via TCP/IP. Eventually, Pay-to-IP was phased out, and miners used other mining software which used P2PKH (Pay-to-public-key-hash).

I had the same question about a year and a half ago: https://bitcointalksearch.org/topic/electrum-doesnt-show-rewarded-coins-5327269
jr. member
Activity: 56
Merit: 7
I am conducting a research about Satoshi's Stash of Bitcoin.
I tried to identify the blocks that Satoshi mined in 2009 from the Genesis Block may be up to 60,000 blocks.

When I put the Genesis Block  in the Electrum it shows that there around some Bitcoin people has sents to the Genesis Block address  but it does not show the 50 Coinbase transaction. Which supposed to be the first Bitcoin transaction.

I also put many other address but the result is the same. Some earlier Bitcoin address show the balance is 0.0 but in the Block explorer it shows that coinbase transaction of 50 Bitcoin is there but not spent.

What is the fact ?

Please let me know your comments.

Thanks
Arigato
Jump to: