Bitcoin Forum
April 23, 2024, 07:19:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: testnet (anyone mining?)  (Read 2018 times)
Steve (OP)
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1007



View Profile WWW
June 18, 2011, 03:48:14 PM
 #1

I'm using testnet, but it's been a long time since I've seen a block come through.  I wonder if anyone is mining (this is one case where it would be handy to have a miner in the client)?

I think what I'd really like for testing is a block chain that I could run in isolation with a couple clients...and be able to force the difficulty to remain at 1 no matter how frequently blocks are generated (and then be able to run a miner and specific a frequency for block creation).  I think I remember someone mentioning a testnet in a box or something (time to go search around a little).

(gasteve on IRC) Does your website accept cash? https://bitpay.com
1713856741
Hero Member
*
Offline Offline

Posts: 1713856741

View Profile Personal Message (Offline)

Ignore
1713856741
Reply with quote  #2

1713856741
Report to moderator
1713856741
Hero Member
*
Offline Offline

Posts: 1713856741

View Profile Personal Message (Offline)

Ignore
1713856741
Reply with quote  #2

1713856741
Report to moderator
1713856741
Hero Member
*
Offline Offline

Posts: 1713856741

View Profile Personal Message (Offline)

Ignore
1713856741
Reply with quote  #2

1713856741
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
joan
Jr. Member
*
Offline Offline

Activity: 56
Merit: 1



View Profile
June 18, 2011, 04:22:10 PM
 #2

Run with -gen option to mine.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
June 18, 2011, 05:10:42 PM
 #3

https://sourceforge.net/projects/bitcoin/files/Bitcoin/testnet-in-a-box/

How often do you get the chance to work on a potentially world-changing project?
aleiprecht
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 22, 2011, 03:33:46 PM
 #4

Hmmm, didn't know about the testnet in a box before... might come in handy
Is there anything wrong with using the public testnet ? And to answer the initial question, yes I am mining (difficulty ~33) the testnet when I am not actively testing my code.
Steve (OP)
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1007



View Profile WWW
June 22, 2011, 06:54:13 PM
 #5

Nothing wrong with using the public testnet, just that mining activity (and hence block generation) can be spotty...and if you want to generate blocks for testing, even at difficulty of 33, it's still higher than is necessary for testing purposes.

(gasteve on IRC) Does your website accept cash? https://bitpay.com
aleiprecht
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 22, 2011, 07:34:23 PM
 #6

My reason for mining on the public testnet, and if I am wrong with my thinking I appreciate being corrected.

1.) I am building an application that accepts bitcoins.
2.) My testers are in the US and in Europe
3.) If they start their bitcoin clients with the -testnet switch and make transactions their TX will have to be included into the blockchain somehow
4.) If no one mines on the testnet, then #3 won't work

That's pretty much the motivation... Does that sound right ??
Steve (OP)
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1007



View Profile WWW
June 23, 2011, 02:51:28 AM
 #7

My reason for mining on the public testnet, and if I am wrong with my thinking I appreciate being corrected.

1.) I am building an application that accepts bitcoins.
2.) My testers are in the US and in Europe
3.) If they start their bitcoin clients with the -testnet switch and make transactions their TX will have to be included into the blockchain somehow
4.) If no one mines on the testnet, then #3 won't work

That's pretty much the motivation... Does that sound right ??

That's right, but to me it seems block creation on the testnet can be erratic...which is why I'm interested in running a private testnet and mining on that (difficulty is very low and block creation can be better controlled).

But, I've run into an issue with a private testnet...a public testnet managed to find and connect to my private test net and nuked my private chain.  I guess I'll need to setup one central client that accepts inbound connections and lock it down with iptables or something...an option like -allowip (similar to -rpcallowip) would be very convenient...I could explicitly allow just the clients on the private testnet to connect to this central server (and make sure they only have one connection using -connect and -nolisten).

(gasteve on IRC) Does your website accept cash? https://bitpay.com
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!