Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. var Put = require('bufferput');
  2. var buffertools = require('buffertools');
  3. var hex = function(hex) {
  4. return new Buffer(hex, 'hex');
  5. };
  6.  
  7. exports.livenet = {
  8. name: 'livenet',
  9. magic: hex('F9BEB4D9'),
  10. addressVersion: 0x00,
  11. privKeyVersion: 128,
  12. P2SHVersion: 5,
  13. hkeyPublicVersion: 0x0488c42e,
  14. hkeyPrivateVersion: 0x0488e1f4,
  15. genesisBlock: {
  16. hash: hex('74952ea5ce08450348643f611d41696f8e0dd63cd0e587247f4b5c1e28484160'),
  17. merkle_root: hex('c787795041016d5ee652e55e3a6aeff6c8019cf0c525887337e0b42065526916'),
  18. height: 0,
  19. nonce: 9377,
  20. version: 1,
  21. prev_hash: buffertools.fill(new Buffer(32), 0),
  22. timestamp: 1492973331,
  23. bits: 0x1e0ffff0,
  24. },
  25. dnsSeeds: [
  26. 'x'
  27. ],
  28. defaultClientPort: 9333
  29. };
  30.  
  31. exports.mainnet = exports.livenet;
  32.  
  33. exports.testnet = { //not setup for litecoin yet
  34. name: 'testnet',
  35. magic: hex('0b110907'),
  36. addressVersion: 0x6f,
  37. privKeyVersion: 239,
  38. P2SHVersion: 196,
  39. hkeyPublicVersion: 0x043587cf,
  40. hkeyPrivateVersion: 0x04358394,
  41. genesisBlock: {
  42. hash: hex('43497FD7F826957108F4A30FD9CEC3AEBA79972084E90EAD01EA330900000000'),
  43. merkle_root: hex('3BA3EDFD7A7B12B27AC72C3E67768F617FC81BC3888A51323A9FB8AA4B1E5E4A'),
  44. height: 0,
  45. nonce: 265310,
  46. version: 1,
  47. prev_hash: buffertools.fill(new Buffer(32), 0),
  48. timestamp: 1392281929,
  49. bits: 486604799,
  50. },
  51. dnsSeeds: [
  52. 'xx',
  53. 'xx'
  54. ],
  55. defaultClientPort: 19333
  56. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement