Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: boogersguy on December 08, 2017, 11:22:55 PM



Title: Block explorers that show details of unconfirmed transactions - how?
Post by: boogersguy on December 08, 2017, 11:22:55 PM
So if you submit a transaction and it hasn't been confirmed yet, that means it's not on the blockchain right?
Does this mean that when you visit those block explorers (like blockchain.info etc) and you view the unconfirmed transaction, they are pulling the info from their node's mempool?



Title: Re: Block explorers that show details of unconfirmed transactions - how?
Post by: HCP on December 09, 2017, 04:45:38 AM
In a word... Yes.

This is why sometimes you can see your unconfirmed transaction on some blockexplorers and not others... because the blockexplorer that isn't showing your transaction does not have your transaction in it's mempool... (either not received or dropped etc)


Title: Re: Block explorers that show details of unconfirmed transactions - how?
Post by: Xynerise on December 09, 2017, 11:49:01 AM
So if you submit a transaction and it hasn't been confirmed yet, that means it's not on the blockchain right?
Does this mean that when you visit those block explorers (like blockchain.info etc) and you view the unconfirmed transaction, they are pulling the info from their node's mempool?


Yes, they are pulling the info from their mempool, which is why it may be available on one site but not another.
When a bitcoin transaction is made, the transaction is broadcast to other nodes peered to it, then these nodes relay the transaction to other nodes etc until all nodes have it in their mempool.


Title: Re: Block explorers that show details of unconfirmed transactions - how?
Post by: btctousd81 on December 10, 2017, 06:57:00 AM
yes,

blockexplorer s are using heavily modified bitcoin-core or custom implementation.,

all new tx are stored in mempool .aka. unconfirmed tx
so block explorer sites show you unconfirmed tx from their mempool.

when new block gets generated/mined, at the time of parsing, all the tx from mempool gets removed which are included/mined in the current block.

and so on.


 


Title: Re: Block explorers that show details of unconfirmed transactions - how?
Post by: lickgrumpy on December 17, 2017, 07:41:29 PM
You're correct. This is actually the main reason why you can view unconfirmed transactions on block explorers. The main reason why this happens is because of the mempool.