Skip to main content
edited tags
Link
Murch
  • 77.8k
  • 35
  • 190
  • 641
Source Link
AleWolf
  • 133
  • 1
  • 4

Fork and Longest Chain Rule

At the same time, A and B succeed in resolving the "Proof of work" challenge and both add a new block to their local blockchain, then they propagate the new blockchains to other nodes. I have 2 questions:

  1. If a node X receives first the blockchain from A, and it approves it, when it receives the blockchain from B, it simply reject it ?

  2. If a node X receives first then blockchain from A, and then the B's blockchain in which also a node C has put another correct block (so is longer then A's blockchain), does the node X reject A's blockchain (applying the longest chain rule) and use the other blockchain as the correct one ?

  3. Due to latency a miner node may not have the complete list of transactions, so it may start to build an incorrect block (for example some transaction misses). If the miner recognize is building an incorrect block (because for example, it received other transactions while it was building the block) it simply throws away the block and start building another one?