Author

Topic: Testnet wallets for classroom (Read 972 times)

hero member
Activity: 623
Merit: 501
August 24, 2015, 03:29:50 AM
#9
Testnet is not gigabytes to download either, it is much smaller than the main chain. As long as the peers find each other on the LAN (which can be done with the "addnode" command-line option) they will be up to date rather quickly.

If your lab is behind a NAT from the real internet, you will want just one "master" node connecting to the internet (with port-forwarding of the bitcoin port to that machine if you have sysadmin access to do so). then all other internal Bitcoins should connect to it by specifying just the master's IP address with the "connect" command-line option.

Interesting but I'm not a "super techie" to set this in place I think. I would be great though if I could and let the participants mine some coins (they would love it).

Any tutorials to set up an own testnet?
Thanks!
legendary
Activity: 1512
Merit: 1036
August 23, 2015, 07:58:06 AM
#8
Testnet is not gigabytes to download either, it is much smaller than the main chain. As long as the peers find each other on the LAN (which can be done with the "addnode" command-line option) they will be up to date rather quickly.

If your lab is behind a NAT from the real internet, you will want just one "master" node connecting to the internet (with port-forwarding of the bitcoin port to that machine if you have sysadmin access to do so). then all other internal Bitcoins should connect to it by specifying just the master's IP address with the "connect" command-line option.
full member
Activity: 164
Merit: 126
Amazing times are coming
August 22, 2015, 01:23:43 AM
#7
If you want to teach others, you could just create your own private network running two or three nodes that connect one each other. In that way you have full control and don't need to copy gigabytes files again and again.
hero member
Activity: 623
Merit: 501
August 20, 2015, 07:28:38 AM
#6
Yes, you should be able to do that as long as no two running instances try to access the same copy at any one time (which is not what you describe).  I'm not 100% sure if there are issues if you copy the format between operating systems and processor architectures, but at least if you use a comparable system on each computer, it should work.  Make sure to delete the wallet file, though, unless you explicitly want that each computer runs with the same wallet.  (This may produce conflicts when people try to spend coins at the same time.)

Yes, of course every machine should have its own wallet.
Do you think copying the "blocks" subdirectory to all machines is enough?

No, you definitely also need the "chainstate".  I'm not sure you definitely need the rest, but I would copy it as well.

Indeed, I've copied "blocks" and "chainstate" to another wallet on another computer and it works  Smiley
legendary
Activity: 1135
Merit: 1166
August 20, 2015, 07:16:52 AM
#5
Yes, you should be able to do that as long as no two running instances try to access the same copy at any one time (which is not what you describe).  I'm not 100% sure if there are issues if you copy the format between operating systems and processor architectures, but at least if you use a comparable system on each computer, it should work.  Make sure to delete the wallet file, though, unless you explicitly want that each computer runs with the same wallet.  (This may produce conflicts when people try to spend coins at the same time.)

Yes, of course every machine should have its own wallet.
Do you think copying the "blocks" subdirectory to all machines is enough?

No, you definitely also need the "chainstate".  I'm not sure you definitely need the rest, but I would copy it as well.
hero member
Activity: 623
Merit: 501
August 20, 2015, 07:15:26 AM
#4
Yes, you should be able to do that as long as no two running instances try to access the same copy at any one time (which is not what you describe).  I'm not 100% sure if there are issues if you copy the format between operating systems and processor architectures, but at least if you use a comparable system on each computer, it should work.  Make sure to delete the wallet file, though, unless you explicitly want that each computer runs with the same wallet.  (This may produce conflicts when people try to spend coins at the same time.)

Yes, of course every machine should have its own wallet.
Do you think copying the "blocks" subdirectory to all machines is enough?
legendary
Activity: 1135
Merit: 1166
August 20, 2015, 07:08:35 AM
#3
Can I copy some contents of my Appdata folder /bitcoin/testnet and paste it in the directories of other pc's that have a fresh install of Bitcoin Core (Testnet)? It's just that I want to avoid waiting the whole day before the blockchain has been downloaded.

Yes, you should be able to do that as long as no two running instances try to access the same copy at any one time (which is not what you describe).  I'm not 100% sure if there are issues if you copy the format between operating systems and processor architectures, but at least if you use a comparable system on each computer, it should work.  Make sure to delete the wallet file, though, unless you explicitly want that each computer runs with the same wallet.  (This may produce conflicts when people try to spend coins at the same time.)
hero member
Activity: 623
Merit: 501
August 20, 2015, 06:57:02 AM
#2
*BUMP*
hero member
Activity: 623
Merit: 501
August 19, 2015, 09:19:34 AM
#1
Hi all,

Can I copy some contents of my Appdata folder /bitcoin/testnet and paste it in the directories of other pc's that have a fresh install of Bitcoin Core (Testnet)? It's just that I want to avoid waiting the whole day before the blockchain has been downloaded.

Many thanks  Wink
Jump to: