Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ansdb on November 30, 2018, 03:54:15 PM



Title: How Blocks Functions in Bitcoin Blockchain ?
Post by: ansdb on November 30, 2018, 03:54:15 PM
Hi Everyone

i'm a niewbie and i was so confused about how the blocks work and Function in Bitcoin blockchain i’ve many questions and i want if someone here has a good knowledge in blockchain to answer my questions ?

1- is the blocks can only contains one transaction or more ?

2- we know that the miners doing calculation through POW ? is it the same calculation of the hash tx ?

3- is the block that is created by a miner doesn’t valide untill it is validated by all the miners in the network ? is that correct ? and how it is considered as a valide block ?

4- is every miner considered as Node in Bitcoin Network ?


Title: Re: How Blocks Functions in Bitcoin Blockchain ?
Post by: ranochigo on November 30, 2018, 04:00:13 PM
1- is the blocks can only contains one transaction or more ?
At least one. The block must have a coinbase transaction. The output of the transaction doesn't matter but the coinbase transaction must exist.
2- we know that the miners doing calculation through POW ? is it the same calculation of the hash tx ?
They hash the block headers which contains a wide array of data and the result is the block hash.
3- is the block that is created by a miner doesn’t valide untill it is validated by all the miners in the network ? is that correct ? and how it is considered as a valide block ?
A block is valid if the nodes in the network think that it is valid. If the miner follows the protocol rules, then those who also follow the protocol rules should agree that the block is valid. If not, then they would be on a different fork since they don't accept that block while those who do builds on it.

The requirement for the block to be valid is quite broad, the crux of it is just that it follows the protocol rules which all of the reference nodes follow.
4- is every miner considered as Node in Bitcoin Network ?
Technically, it used to be. However, when pools came out, people found it more worthwhile to be mining together instead of separately. Most of the miners now don't run a node anymore due to the numerous benefits of pools.


Title: Re: How Blocks Functions in Bitcoin Blockchain ?
Post by: ansdb on November 30, 2018, 04:29:38 PM
first of all thanks a lot for your help i really appreciate it cuz it was a long time looking for the answer of these questions  :)


2- we know that the miners doing calculation through POW ? is it the same calculation of the hash tx ?

They hash the block headers which contains a wide array of data and the result is the block hash.
is the block headers are transactions informations (the sender the receiver/time/amount .. etc)
3- is the block that is created by a miner doesn’t valide untill it is validated by all the miners in the network ? is that correct ? and how it is considered as a valide block ?
A block is valid if the nodes in the network think that it is valid. If the miner follows the protocol rules, then those who also follow the protocol rules should agree that the block is valid. If not, then they would be on a different fork since they don't accept that block while those who do builds on it.

The requirement for the block to be valid is quite broad, the crux of it is just that it follows the protocol rules which all of the reference nodes follow.
so the validity of a transaction depends on the Bitcoin Blockchain Algorithm Rules (Mathematically) is this correct ?

4- is every miner considered as Node in Bitcoin Network ?

Technically, it used to be. However, when pools came out, people found it more worthwhile to be mining together instead of separately. Most of the miners now don't run a node anymore due to the numerous benefits of pools.

so the pool alse could be called as huge Node, is this correct ?


Title: Re: How Blocks Functions in Bitcoin Blockchain ?
Post by: ranochigo on November 30, 2018, 04:55:30 PM
is the block headers are transactions informations (the sender the receiver/time/amount .. etc)
No. The block headers contains the merkel root which contains the transaction hashes which are assembled. They do not contain specific transaction information persay.
so the validity of a transaction depends on the Bitcoin Blockchain Algorithm Rules (Mathematically) is this correct ?
Protocol rules: https://en.bitcoin.it/wiki/Protocol_rules.

so the pool alse could be called as huge Node, is this correct ?
Pools should be running a node, probably not a reference implementation though. Pools do not have to run a node explicitly, the only thing that they need is the transaction information, previous block hash and all that. These can be easily obtained from various sources.


Title: Re: How Blocks Functions in Bitcoin Blockchain ?
Post by: ansdb on November 30, 2018, 05:09:46 PM
is the block headers are transactions informations (the sender the receiver/time/amount .. etc)
No. The block headers contains the merkel root which contains the transaction hashes which are assembled. They do not contain specific transaction information persay.
so the validity of a transaction depends on the Bitcoin Blockchain Algorithm Rules (Mathematically) is this correct ?
Protocol rules: https://en.bitcoin.it/wiki/Protocol_rules.

so the pool alse could be called as huge Node, is this correct ?
Pools should be running a node, probably not a reference implementation though. Pools do not have to run a node explicitly, the only thing that they need is the transaction information, previous block hash and all that. These can be easily obtained from various sources.

Thanks a million for your help, so helpful thanks a lot again  :)