Skip to content

Instantly share code, notes, and snippets.

@jan-willems
Created July 15, 2015 11:14
Show Gist options
  • Save jan-willems/626c9a663387da8292c9 to your computer and use it in GitHub Desktop.
Save jan-willems/626c9a663387da8292c9 to your computer and use it in GitHub Desktop.
insight regtest genesis block
/* magic: https://en.bitcoin.it/wiki/Protocol_documentation#Common_structures */
exports.testnet = {
name: 'testnet',
magic: hex('fabfb5da'), /* bitcoind with -regtest uses "testnet" magic */
addressVersion: 0x6f, /* same */
privKeyVersion: 239, /* same */
P2SHVersion: 196, /* same */
hkeyPublicVersion: 0x043587cf, /* insight specific */
hkeyPrivateVersion: 0x04358394, /* insight specific */
genesisBlock: {
hash: hex('06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f'), /* edited, reversed */
merkle_root: hex('3BA3EDFD7A7B12B27AC72C3E67768F617FC81BC3888A51323A9FB8AA4B1E5E4A'), /* same */
height: 0,
nonce: 2, /* edited */
version: 1,
prev_hash: buffertools.fill(new Buffer(32), 0),
timestamp: 1296688602, /* same */
bits: 545259519, /* 0x207fffff in decimal */
},
dnsSeeds: [
'testnet-seed.bitcoin.petertodd.org',
'testnet-seed.bluematt.me'
],
defaultClientPort: 18333
};
@jan-willems
Copy link
Author

Replace testnet with above genesis block in node.js projects where bitcore is used: node_modules/bitcore/networks.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment