8

AttackerAlice has a BTC Wallet with 0 BTC. AccompliceBob has a BTC Wallet.

Is it possible to transfer 100 BTC from AttackerAlice to AccompliceBob?

Suppose a BadMiner accepted this as a valid transaction, and puts this fake transaction into a block, how will it be detected and rejected?

1
  • to add to the question... Also if the BadMiner is able to create an additional block, will en.bitcoin.it/wiki/Protocol_rules be enough to keep the offending blocks out of the blockchain?
    – Smagula
    Commented Jan 31, 2014 at 11:47

2 Answers 2

12

You can create fake transactions and blocks including fake transactions all day long if you want. Your problem would be getting other people to accept those blocks and they won't because they can very easily see that it contains fake (better word: invalid) transaction(s) and simply disregard those blocks completely.

The first invalid block wil never be accepted by any non-accomplice so it doesn't matter how many blocks are put on top of that, they won't be accepted either.

2
  • 2
    got it.. since most of the network would have rejected the first block, the blockchain will not have the fake block.. other miners intending to add to the block chain will not see the fake block in majority of the cases... hence the honest block chain will grow faster and survive..
    – Smagula
    Commented Jan 31, 2014 at 12:32
  • 4
    actually it's better to say that nodes won't relay the transactions, nor include them in their block in the first place. Commented Jan 31, 2014 at 14:05
5

This cannot happen because of the way each transaction is designed. Every single transaction must reference an output of another transaction. Essentially you can only spend the money that you already have. You cannot create BTC out of thin-air.

The consensus algorithm is programmed in all nodes to only create coins out of thin-air based on the coinbase transaction, and all the transaction fees available in that block.

You can't just transfer 100 BTC out of nowhere, because all the nodes in the network would invalidate your transaction and probably ban your IP if you try to do so.

7
  • what if the BadMiner was able to create two blocks very quickly.. one fake and a followup legal one.. and sent both of them to the network..
    – Smagula
    Commented Jan 31, 2014 at 12:03
  • Even if badminer got two blocks in a row he wouldn't be able to create coins out of thin air, he would only be able to double-spend coins he already has: en.bitcoin.it/wiki/… Commented Jan 31, 2014 at 12:06
  • 1
    not very clear sir.. what happens to the second legal block after the first fake block is rejected - suppose other miners start accepting the second block and grow the blockchain further..?
    – Smagula
    Commented Jan 31, 2014 at 12:16
  • @Smagula it doesn't matter. You can write a cheque for $100000 to your bank account and you won't get the money for the same reason; throwing multiple bad cheques is going to 1) get you IDd as a fraud peddler, 2) writing on paper or in a block means nothing if the ledger doesn't back up the request. Commented Sep 16, 2014 at 7:37
  • maybe a dumb question but as im learning bitcoin at this point... where does the initial input come from then?? (obviously, bitcoin is mined but how did it all start from 0)
    – dtc
    Commented Oct 24, 2015 at 1:25

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