I'm working on a block explorer at: http://www.hempstuff.net:3000/ <-- URL will change
.. but I have run into problems and can't figure out all the settings in networks.js (here is an example of file: https://github.com/bitpay/bitcore/issues/121)
I have no idea what to put in the genesisBlockTx: area..
Thanks!
you can find the information at:
https://github.com/hempcoin-project/THC/blob/master/src/main.h#L56
like your "Powered by" working with the same stuff too.
is your source public available? our can I get access? perhaps I can help?!
I don't have the source available to the public atm, here's the code. Bold I've changed, red I don't know what to do. lol I also don't know if the hash's should start with 0x00000 & 0x or not.. for bits, I tried 1e0fffff as that's what the block info says in the hempcoin wallet but got an error when I tried that..
Thanks for any help you can provide, I think I'm close I just don't understand cryptography well enough yet. I am connecting to livenet, not testnet.
exports.livenet = {
name: 'livenet',
addressVersion: 0x23,
magic: hex('fbc0b6db'),
genesisBlock: {
height: 0,
nonce: 880006,
version: 1,
hash: hex('0x00000dd93ea1774f94a1ac8d26fa5bc165c1bc3d415b9c37ecb8a6ebe5e05fb1'),
prev_hash: buffertools.fill(new Buffer(32), 0),
timestamp: 1393868740,
merkle_root: hex('0x2362d9763557a78a460e62d6c0439aa6fcf15ca607746e56f1026d922302c0ad'),
bits: 486604799
},
genesisBlockTx: {
outs: [{
v: hex('00A5459B01000000'), // 69 FUCKs (copied off the web, this usually says 50 BTC with different hex value)
s: new Put()
.word8(65) // 65 bytes of data follow
.put(hex('040184710FA689AD5023690C80F3A49C8F13F8D45B8C857FBCBC8BC4A8E4D3EB4B10F4D4604FA08 DCE601AAF0F470216FE1B51850B4ACF21B179C45070AC7B03A9'))
.word8(0xAC) // OP_CHECKSIG
.buffer()
}],
lock_time: 0,
version: 1,
hash: hex('537B5010FE44A2DD680DD345F9554D4F9E99154B34EF03E1303698D5D9ED2CDB'),
ins: [{
q: 0xFFFFFFFF,
o: hex("0000000000000000000000000000000000000000000000000000000000000000FFFFFFFF"),
s: new Put()
.put(hex('04FFFF001D01042C'))
.put(new Buffer('Inhale, exhale, just got an oz in the mail...', 'ascii'))
.buffer()
}]
},
proofOfWorkLimit: hex("00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"),
checkpoints: [], // need to put checkpoint blocks here
addressPubkey: 40,
addressScript: 8,
keySecret: 128,
};