0

I've just started reading about bitcoin, and I had this question, what if :

  1. I created two bitcoin addresses.
  2. added for example 1 btc to one of them.
  3. then I start sending that 1 btc back and forth between the two addresses till I complete one block but somehow I don't broadcast those transactions.
  4. I calculate the magic number.
  5. broadcast the block and I claim the mining fee without any competition.

I know there is something preventing this from being possible I just don't know what it is ? thank you for time.

1

That is not how bitcoin works. You can't just "add" bitcoin to an address without a valid UTXO. There is not a minimum number of transactions required to create a block. A miner can create a block with no transactions included if they wanted, so the sending back and forth idea makes no sense. Calculating the magic number isn't something you can do on your own, all the other miners in the world are racing to solve for the same block, and once they do, you need to update your equation to solve for a new magic number. I think you need to do a bit more research on how bitcoin works.

2
  • Thank you for reading my question. you said :" You can't just "add" bitcoin to an address without a valid UTXO" but what I meant by added for example 1 btc to one of them, I would buy that bitcoin just to make those transactions to come legit. My idea was what's holding anybody from creating an empty block(then no competition) and getting the block reward.
    – hakim47
    Jan 30 at 11:56
  • I think what I messing is that you need to be fast enough to make a block with the hash of the previous block before anybody else, isn't it ?
    – hakim47
    Jan 30 at 12:03

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.