3

I am running Bitcoin in regtest mode. Is it possible to send bitcoins generated in regtest mode to a friend ? (I only want to test it). Is it possible ?

  • I do not have enough time to make a complete answer now, but you can look here. It seems more than possible! – Mathias711 Sep 16 '14 at 22:19
  • I believe you can send to an address but since there are no connected peers I don't think you can send to another person. – Mark S. Sep 17 '14 at 1:52
2

Yes, sort of.

In regtest mode, mining is made much easier, and by default it doesn't attempt to connect to any peers to exchange blocks or transactions. But your friend can run another client in regtest mode and explicitly connect to yours, and then you will share the same block chain and can exchange transactions.

You will need to ensure that your firewall allows incoming TCP port 18444 from the Internet (or at least from your friend's IP address). You'll also need your external IP address; say it is 1.2.3.4. (DNS also works if your machine has a DNS name.) Then you can run your client with -regtest, and your friend can run hers with -regtest -connect=1.2.3.4. Once you have synced your blockchain with each other, you can send transactions to each other just like you were on the real Bitcoin network. (Of course, nobody will see them except you.) Note that in order for the transactions to be confirmed, one or both of you will have to use setgenerate to mine some more blocks.

Note also that if both of you are mining, a temporary network failure could lead to you quickly making a big fork in your block chain. This will make the Bitcoin client unhappy.

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.