Bitcoin Forum
May 02, 2024, 06:40:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Re: How come transactions are not lost in the Blockchain network -semi newbie inside on: December 27, 2017, 10:15:46 AM
Hi everyone, I am pretty new to the Bitcoin & Blockchain world. I am currently reading Mastering Bitcoin, but I have a doubt I can't solve.

Let me use an easy example:

Let's say there are only 2 mining nodes (A and B), which are both mining the block 5 to to add it to the chain.

Now, from what I have understood, the transactions the 2 nodes have in their block 5 can differ. E.g. the transaction "Alice buys a coffee for 5 BTC" can be in the block 5 that the node A is mining, but not in the block 5 that the node B is mining (e.g. because this transaction arrived later to the node B compared to the node A).

Now, if the winning node for this block is the node B, the transaction "Alice...." won't be stamped in the ledger.

When the competition for the block 5 is over, are the "loosing" nodes (in this case the node A) giving up all the transactions in the block they were working on? and take new transactions from the memory pool?

In this case, if the nodes start again mining for the block 6, the transaction "Alice...." will be in the block 6 for node B, but not in the block 6 for node A (node A has given up the transaction from the block 5)

What if node A wins the mining? Won't the transaction "Alice...." be lost forever?

Please correct me

Cheers

It's not the nodes that do the mining process right now, it's the pools of miners.

Furthermore, (transactions *basically* have nothing to do with the mining process). Mining is simply discovering a hash that is valid. Then they'll ( most likely) choose the transaction with the highest fees until the block is filled up.

If miner B is ( significantly) faster then miner A, all the transactions from miner b will be added to the blockchain, and as you said, none from miner A .

So, if Alice wasn't chosen by miner B to be in the block, she will still be in the mempool. If miner A mines block 6, and Alice her transaction fee is high enough, there's a good chance miner A takes and puts her transaction in block 6.

Quote
(node A has given up the transaction from the block 5)

Miner A has given up looking for said hash, but the transaction still remains valid to be added in future blocks.

It seems to me that you interpret it as if the transactions itself are "mined", or need significant work to be added into the blockckhain, however this isn't the case.


Thanks.

Yes, I used the wrong terms, but I have clear in my mind the difference between mining and transactions.

So let me try to ask you this question: is it correct to assume that in the first place the mining pools look for the hash (mining activity) and when they eventually find the hash they complete the block with transaction from the memory pool?

What I am trying to understand is if the 2 activities happen one after the other. In this case if mining pool A doesn't win the first round Alice's transaction would stay in its pool because it is not included in the block the mining pool B has just added to the chain.
2  Other / Beginners & Help / How come transactions are not lost in the Blockchain network -semi newbie inside on: December 26, 2017, 05:18:41 PM
Hi everyone, I am pretty new to the Bitcoin & Blockchain world. I am currently reading Mastering Bitcoin, but I have a doubt I can't solve.

Let me use an easy example:

Let's say there are only 2 mining nodes (A and B), which are both mining the block 5 to to add it to the chain.

Now, from what I have understood, the transactions the 2 nodes have in their block 5 can differ. E.g. the transaction "Alice buys a coffee for 5 BTC" can be in the block 5 that the node A is mining, but not in the block 5 that the node B is mining (e.g. because this transaction arrived later to the node B compared to the node A).

Now, if the winning node for this block is the node B, the transaction "Alice...." won't be stamped in the ledger.

When the competition for the block 5 is over, are the "loosing" nodes (in this case the node A) giving up all the transactions in the block they were working on? and take new transaction from the memory pool?

In this case, if the nodes start again mining for the block 6, the transaction "Alice...." will be in the block 6 for node B, but not in the block 6 for node A (node A has given up the transaction from the block 5)

What if node A wins the mining? Won't the transaction "Alice...." be lost forever?

Please correct me

Cheers
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!