Bitcoin Forum
May 03, 2024, 02:35:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do peers of bitcoin type confirm transactions?  (Read 144 times)
Nheer (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 500



View Profile WWW
February 27, 2023, 10:56:51 AM
Merited by fillippone (1)
 #1

Every bitcoin transaction's history is recorded in a ledger. Maintaining a copy of the blockchain and routinely scanning for new transactions and blocks to validate are required by a node.
-What duties must a node perform in order to be regarded a complete network node?
-How do nodes pass information or communicate with each other across the bitcoin network.
-Also need assistance in understanding how peers of the bitcoin type are able to confirm transactions without keeping a complete copy of the bitcoin ledger.

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBITCRYPTO
FUTURES
[
1,000x
LEVERAGE
][
.
COMPETITIVE
FEES
][
INSTANT
EXECUTION
]██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████████████████████████████████████
.
TRADE NOW
.
████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
1714703752
Hero Member
*
Offline Offline

Posts: 1714703752

View Profile Personal Message (Offline)

Ignore
1714703752
Reply with quote  #2

1714703752
Report to moderator
1714703752
Hero Member
*
Offline Offline

Posts: 1714703752

View Profile Personal Message (Offline)

Ignore
1714703752
Reply with quote  #2

1714703752
Report to moderator
1714703752
Hero Member
*
Offline Offline

Posts: 1714703752

View Profile Personal Message (Offline)

Ignore
1714703752
Reply with quote  #2

1714703752
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714703752
Hero Member
*
Offline Offline

Posts: 1714703752

View Profile Personal Message (Offline)

Ignore
1714703752
Reply with quote  #2

1714703752
Report to moderator
Yamane_Keto
Sr. Member
****
Offline Offline

Activity: 476
Merit: 486



View Profile WWW
February 27, 2023, 03:51:49 PM
 #2

-What duties must a node perform in order to be regarded a complete network node?
you can run full node software on any hardware but running it on weak hardware, may cuz some problems, so you need Minimum HW requirements and stable internet connection.
you may find more here https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch03.asciidoc

Regarding the question in the title, when the block is mined, the miners add all the unconfirmed transactions in the mempool with a total that does not exceed max block size and thus you get one confirmation. Mining more blocks above it increases the number and so on.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
February 27, 2023, 07:51:46 PM
Merited by ABCbits (1)
 #3

when the block is mined, the miners add all the unconfirmed transactions in the mempool with a total that does not exceed max block size
There is no requirement for miners to add as many unconfirmed transactions as they can fit in to their block, and indeed, there is no requirement for miners to add any transactions at all other than the coinbase transaction to their block. It is not that rare to see empty blocks being mined which contain only the coinbase transaction and nothing else. There have been two such blocks within the last 24 hours - 778,469 and 778,448.

Usually this happens when a miner finds a block very soon after receiving the previous block. They have not yet fully verified the previous block, so rather than have their equipment sitting idle they simply attempt to mine an empty block for a few seconds until they have verified the previous block and updated their UTXO sets.
Macadonian
Sr. Member
****
Offline Offline

Activity: 467
Merit: 578


View Profile
February 28, 2023, 01:29:37 AM
 #4

-What duties must a node perform in order to be regarded a complete network node?
It has to have a copy of the complete Blockchain up to date which it will send and recieve from other nodes to make sure that it is exactly the same this verifies that the Blockchain is consistent and there is no one exploiting to trying to change the consensus. When transactions are made it has to compare them to to other nodes. It has to broadcast new transactions to other nodes as well as its most recently downloaded blocks to ensure that it has the same copy as other nodes. Any thing less then this means it is a partial node. Nodes have to be connected to the internet but you can do it with VPN or Tor if you wish.

-How do nodes pass information or communicate with each other across the bitcoin network.
They send information directly to other nodes and not to a centralized server so your node needs to allow sending data to other nodes and receive other date. It then validates them.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
February 28, 2023, 10:39:44 AM
 #5

When transactions are made it has to compare them to to other nodes.
This does not happen. When a transaction is broadcast to a node, a node will attempt to verify it against its own code and protocols. If it is successfully verified, then the node will broadcast it to other nodes. These other nodes will perform the same internal verification before broadcast it on. At no point does a node compare the transaction to other nodes and ask for their feedback.

It has to broadcast new transactions to other nodes as well as its most recently downloaded blocks to ensure that it has the same copy as other nodes.
Again, nodes don't compare their recent blocks to other nodes. They simply receive a new block, attempt to verify it, and if it verifies successfully then add it to their chain. This is how chain splits can happen when 2 or more equally valid blocks are mined at the same height. If nodes compared their chains to each other then there would have to be some mechanism for resolving the split before the next block is mined, which there isn't (and indeed, can't be in a decentralized system).
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!