2
How can I know which testnet am I on?
I just ran bitcoind -testnet, and I would assume it would connect to the most recent one, but is there a way to know it?
2
How can I know which testnet am I on?
I just ran bitcoind -testnet, and I would assume it would connect to the most recent one, but is there a way to know it?
4
1
To double check, the genesis block for testnet3 (the current version as of this writing) has hash 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943. So with the daemon running, you can do
bitcoind -testnet getblock 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
If you are really on testnet3, you should see "height: 0" in the output.
1Oh, so it's hardcoded in the client, I didn't know that. – o0'. – 2013-06-15T20:37:09.367
2The different testnets have slightly different rules, and a separate genesis block, so yes, they are hardcoded. No point in trying to support multiple versions. – Pieter Wuille – 2013-06-16T09:05:02.670