Skip to main content
Add formatting for future viewers
Source Link
Shane Fontaine
  • 18.4k
  • 20
  • 57
  • 83

Some values - e.g. block.timestampblock.timestamp - are provided by the miner. This means that they might not be consistent between different miners. How does the blockchain handle that?

My understanding is that every block is deterministic, so that two miners who mine the same block with the same transactions will always get the same result, that anyone can reproduce. But, if the outcome of a transaction depends on a miner provided value, how can it guarantee consistency? What happens when two miners provide different values?

Some values - e.g. block.timestamp - are provided by the miner. This means that they might not be consistent between different miners. How does the blockchain handle that?

My understanding is that every block is deterministic, so that two miners who mine the same block with the same transactions will always get the same result, that anyone can reproduce. But, if the outcome of a transaction depends on a miner provided value, how can it guarantee consistency? What happens when two miners provide different values?

Some values - e.g. block.timestamp - are provided by the miner. This means that they might not be consistent between different miners. How does the blockchain handle that?

My understanding is that every block is deterministic, so that two miners who mine the same block with the same transactions will always get the same result, that anyone can reproduce. But, if the outcome of a transaction depends on a miner provided value, how can it guarantee consistency? What happens when two miners provide different values?

Source Link

How does the blockchain handle consistency of miner-provided values?

Some values - e.g. block.timestamp - are provided by the miner. This means that they might not be consistent between different miners. How does the blockchain handle that?

My understanding is that every block is deterministic, so that two miners who mine the same block with the same transactions will always get the same result, that anyone can reproduce. But, if the outcome of a transaction depends on a miner provided value, how can it guarantee consistency? What happens when two miners provide different values?