Answer the question
In order to leave comments, you need to log in
How is synchronization achieved in the blockchain?
I have questions about consensus and synchronization of miners, I would like to know how it works.
As I see it. There is a blockchain, for example, there are 10 miners in it (as I understand it, it doesn’t matter on what grounds the consensus is, I think so, let it be PoS or PoW, you can consider Ethereum). The first miner has a transaction that needs to be confirmed.
Miner Actions: If this is a transaction to transfer funds, then the miner must check the signature to make sure that the transaction is not fictitious. Next, check if there are enough funds on the sender's wallet. Then write off the money and fix it for yourself.
Further, other miners must do the same before inserting the transaction into the
Questions block.
1. Each miner must store on his side information about all available wallets and the balance on them? Or is it found out in other ways?
2. Do you need to notify all other miners so that they confirm the same thing? What if one in ten disagrees? And if there are thousands of miners, and new ones are connected to the system during the confirmation process? How to notify everyone, the DHT table will be huge and constantly changing.
3. Suppose the number of miners is fixed, and each miner knows the addresses of the other miners, so he sends them notifications about this transaction. Everyone at once. What happens if at the same time a second transaction arrives to another miner? In a dynamic system, a ton of forks should be formed, and half of the resources will be directed only to getting rid of them.
4. If this is not how things really work, then how is synchronization achieved between all the miners in the network, given the constantly appearing transactions?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question