0

Is it necessary for the miner to know the transactions from the beginning of mining process? Or he won't need these information until he succeed in the mining and find the nonce that its output starts with a certain number of zeroes? In other words aren't the only information the miner need before success are: Version, Previous Block, Merkle Root, Time, and Bits?

4
  • 1
    The Merkle root depends on all of the transactions in the block (including their order); in fact the entire reason it exists in the block header is to bind the transactions to the block. Feb 16, 2022 at 3:51
  • 1
    @dave_thompson_085 So the Merkle root differs from a miner to another (because the first transaction that is the reward transaction its address depends on the miner)?
    – Prometheus
    Feb 16, 2022 at 11:15
  • @Roofnos Exactly. Feb 16, 2022 at 15:22
  • For a solo miner, as was common years ago, yes each will use a different coinbase output, making the txn and thus the Merkle root different. Miners in a pool, which is practically all today, share the same coinbase output, but are assigned different 'extranonce' values in the coinbase's basically-dummy input, with the same result. Feb 17, 2022 at 8:21

1 Answer 1

0

Is it necessary for the miner to know the transactions from the beginning of mining process?

Yes.

Or he won't need these information until he succeed in the mining and find the nonce that its output starts with a certain number of zeroes?

What can he do after he's already mined a block? He can't change the block.

In other words aren't the only information the miner need before success are: Version, Previous Block, Merkle Root, Time, and Bits?

Sure, but the merkle root cannot be computed without knowing the transactions in the block.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.