0

I am trying to understand how bitcoin works internally in solo minning, and i am a little confused with the submitblock method:


version:     The current version
prev block:  The previous block
merkle root: The merkle root (Double SHA of the coinbase transaction)
timestamp:   The middle time
bits:        The difficulty
nonce        The valid nonce
num txs:     Number of the transaction (01 if it contains only coinbase transaction)
tx1:         The coinbase transaction (Built from the createrawtransaction method)

Is that correct?

Thank you for your help

  • I want add a fix at your post, the Merkle root is built with all transactions inside the block, so in other words the merkle tree is not a normal binary tree but it is built from the left. The merkle tree root is the result of some process that include all transactions – vincenzopalazzo Jul 7 at 4:20
  • @vincenzopalazzo Yes, but if the block contains only the coinbase transaction, the merkle root will be only the double sha256 of the coinbase transaction (Little endian)? Or i am wrong? – Hamita Jul 7 at 16:00

Your Answer

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

Browse other questions tagged or ask your own question.