What keeps bitcoins mined in testnet from being used in mainnet?

0

I've been reading up on how transactions actually work, but I'm not sure I understand how testnet bitcoins are kept from being spent on mainnet. My best understanding is that coins are actually references to transactions on the chain, so referencing a testnet transaction on the mainnet chain would not work. Is this correct?

jordaniac89

Posted 2017-11-02T18:23:46.107

Reputation: 135

Answers

2

Yes, that's correct. A mainnet node would just see those transactions as invalid because the outputs they attempt to spend are not in its database. It would have no idea that there is some other network on which they are valid.

David Schwartz

Posted 2017-11-02T18:23:46.107

Reputation: 46 931

Thanks! I was wondering, and I felt like it was clicking once I understood inputs and outputs a little better, but I wasn't sure. Thanks for the answer!jordaniac89 2017-11-02T21:21:37.950

1

Indeed. When if you try to reference a utxo (unspent transaction output) from a previous transaction of the testnet in the mainnet, most likely there will be no match.

In case there was a match, you will need to prove that you can spend such output (by performing a digital signature normally), which is even less likely.

sr-gi

Posted 2017-11-02T18:23:46.107

Reputation: 2 382