0

Can anyone tell me what to do to publish if I mined a block

0

Let's assume that you are solo-mining.
If you are a miner you need to run a Bitcoin Full-Node for example Bitcoin Core. If you do this you are a full part of the Bitcoin network.
If you mine a block, you do the following steps:

  • Putting transaction together and verify them
  • Doing the Proof-of-Work (Calculating the nounce until the first characters are zeros).
  • Adding stuff like coinbase and timestamps
  • Profit from the reward and transaction fees

If this is done you broadcast the block to all nodes in the network the same way as broadcast a transaction. This means that all nodes are receiving this block. They are also checking it like if your block matches the difficulty and if the transaction are valid. Then they are adding it to their own local copy of the blockchain.

The nodes are broadcasting the blocks and transactions under each other. That's how peer to peer work. You should take a look at this

  • thanks, this helped! – Shilps Jan 6 at 14:29
0

To actually publish the block onto the Bitcoin network, you can use the bitcoin-cli command submitblock. You would have to serialize all the data in the block into hex format first.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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