B
B
BoyFromDubai2022-02-27 00:39:20
Cryptocurrency
BoyFromDubai, 2022-02-27 00:39:20

How does a node switch to a longer blockchain in practice?

I don't fully understand how switching to a longer branch on the blockchain works in practice. Therefore, I would be grateful for advice on what to read, what to study.
And if possible, tell me how the node switches to a longer blockchain, I need this to understand in order to implement one thing

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web3scout, 2022-02-28
@minotavr1712

If the number of the new valid block is greater than all the previous ones, select it, now the entire chain from this block to the very first one.
There is a simulator you can watch live https://web3scout.github.io/forcecons-sim/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question