Bitcoin Forum
April 24, 2024, 11:52:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin transaction confirmation and mining  (Read 195 times)
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
August 28, 2018, 03:31:54 AM
 #1

one technical question:

when i send out a bitcoin to the recipient, the transaction is included in a block. The transaction is confirmed by miner.

Is the block fully utilized, as in is its capacity fully used ? For other transaction, is it included in the same block if the block is not full ?

how does miner check which block is the latest, if the same block is being mined to confirm new transactions ?

1714002770
Hero Member
*
Offline Offline

Posts: 1714002770

View Profile Personal Message (Offline)

Ignore
1714002770
Reply with quote  #2

1714002770
Report to moderator
1714002770
Hero Member
*
Offline Offline

Posts: 1714002770

View Profile Personal Message (Offline)

Ignore
1714002770
Reply with quote  #2

1714002770
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714002770
Hero Member
*
Offline Offline

Posts: 1714002770

View Profile Personal Message (Offline)

Ignore
1714002770
Reply with quote  #2

1714002770
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4163


View Profile
August 28, 2018, 03:43:07 AM
Merited by ABCbits (1)
 #2

Is the block fully utilized, as in is its capacity fully used ?
Depends on the miner. They can choose to include every transaction that they see or not. The block doesn't necessarily have to be full at all.
For other transaction, is it included in the same block if the block is not full ?
The miner will decide which transaction they wish to include before they even start to mine and solve the block. When they get the block that corresponds to the target, they cannot change any variable in the block or the whole hash will be changed.
how does miner check which block is the latest, if the same block is being mined to confirm new transactions ?
Blocks are propagated across the network and the miner runs a node. When they detect a node that is mined at the current height, they will discard the current block header (containing merkle root, last block hash, block height) and adjust it such that the block height, block hash corresponds to the correct one and the transactions aren't included twice.

The miner builds the chain on top of the last block.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
August 28, 2018, 03:45:55 AM
 #3

The miner will decide which transaction they wish to include before they even start to mine and solve the block. When they get the block that corresponds to the target, they cannot change any variable in the block or the whole hash will be changed.

Does it mean once the block is mined with transactions, the same block cannot be mined to add new transactions to it ?

Thanks.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4163


View Profile
August 28, 2018, 03:51:31 AM
 #4

Does it mean once the block is mined with transactions, the same block cannot be mined to add new transactions to it ?

Thanks.
Nope. The set of transaction is hashed and included as merkle root. The merkle root is included in the block header which is hashed again. If you add transactions, the merkle root will be changed and the whole block header will be changed. You can do it, but the block won't meet the target anymore and nodes won't accept it.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
victorkimba17 (OP)
Jr. Member
*
Offline Offline

Activity: 113
Merit: 5


View Profile
August 28, 2018, 04:59:26 AM
 #5


Nope. The set of transaction is hashed and included as merkle root. The merkle root is included in the block header which is hashed again. If you add transactions, the merkle root will be changed and the whole block header will be changed. You can do it, but the block won't meet the target anymore and nodes won't accept it.

very clear reply. Thanks a lot.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!