Testnet: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
Freewil (talk | contribs)
No edit summary
Pkarc (talk | contribs)
mNo edit summary
Line 7: Line 7:
* Bootstrapping IRC channel is #bitcoinTEST instead of #bitcoin (both on irc.lfnet.org). The built-in node list is disabled.
* Bootstrapping IRC channel is #bitcoinTEST instead of #bitcoin (both on irc.lfnet.org). The built-in node list is disabled.
* A different value of ADDRESSVERSION field ensures no testnet BitCoin addresses will work on the production network. (0x6F rather than 0x00)
* A different value of ADDRESSVERSION field ensures no testnet BitCoin addresses will work on the production network. (0x6F rather than 0x00)
* The protocol message header bytes are shifted up (0xFABFB5DA instead of 0xF9BEB4D9)
* The protocol message header bytes are shifted up (0xFABFB5DA instead of 0xF9BEB4D9) bitcoin version >= 7.0.0 testnet message header (0x0B110907)
* Minimum [[difficulty]] of 1.0 on testnet is equal to difficulty of 0.5 on mainnet. This means that the mainnet-equivalent of any testnet difficulty is half the testnet difficulty.
* Minimum [[difficulty]] of 1.0 on testnet is equal to difficulty of 0.5 on mainnet. This means that the mainnet-equivalent of any testnet difficulty is half the testnet difficulty.
* A new genesis block
* A new genesis block

Revision as of 16:25, 20 November 2012

The testnet is an alternative Bitcoin block chain, to be used for testing. This allows application developers or bitcoin testers to experiment, without having to use real bitcoins or worrying about breaking the main bitcoin chain.

Run bitcoin or bitcoind with the -testnet flag to use the testnet (or put testnet=1 in the bitcoin.conf file).

Differences

  • Instead of port 8333 (listen), port 18333 is used.
  • Bootstrapping IRC channel is #bitcoinTEST instead of #bitcoin (both on irc.lfnet.org). The built-in node list is disabled.
  • A different value of ADDRESSVERSION field ensures no testnet BitCoin addresses will work on the production network. (0x6F rather than 0x00)
  • The protocol message header bytes are shifted up (0xFABFB5DA instead of 0xF9BEB4D9) bitcoin version >= 7.0.0 testnet message header (0x0B110907)
  • Minimum difficulty of 1.0 on testnet is equal to difficulty of 0.5 on mainnet. This means that the mainnet-equivalent of any testnet difficulty is half the testnet difficulty.
  • A new genesis block

Genesis Block

Testnet uses a different genesis block to the main network. You can find it at http://blockexplorer.com/testnet/b/0 The testnet was reset with a new genesis block for the 0.3.20 bitcoin release.

External links