Browse Source

networks: prioritize bitcoin/testnet

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
c00be27192
  1. 70
      src/networks.js

70
src/networks.js

@ -15,33 +15,18 @@ var networks = {
feePerKb: 10000, // https://github.com/bitcoin/bitcoin/blob/v0.9.2/src/main.cpp#L53 feePerKb: 10000, // https://github.com/bitcoin/bitcoin/blob/v0.9.2/src/main.cpp#L53
estimateFee: estimateFee('bitcoin') estimateFee: estimateFee('bitcoin')
}, },
gamerscoin: { testnet: {
magicPrefix: '\x19Gamerscoin Signed Message:\n', magicPrefix: '\x18Bitcoin Signed Message:\n',
bip32: {
public: 0x019da462,
private: 0x019d9cfe
},
pubKeyHash: 0x26,
scriptHash: 0x05,
wif: 0xA6,
dustThreshold: 0, // https://github.com/gamers-coin/gamers-coinv3/blob/master/src/main.cpp#L358-L363
dustSoftThreshold: 100000, // https://github.com/gamers-coin/gamers-coinv3/blob/master/src/main.cpp#L51
feePerKb: 100000, // https://github.com/gamers-coin/gamers-coinv3/blob/master/src/main.cpp#L54
estimateFee: estimateFee('gamerscoin')
},
dogecoin: {
magicPrefix: '\x19Dogecoin Signed Message:\n',
bip32: { bip32: {
public: 0x02facafd, public: 0x043587cf,
private: 0x02fac398 private: 0x04358394
}, },
pubKeyHash: 0x1e, pubKeyHash: 0x6f,
scriptHash: 0x16, scriptHash: 0xc4,
wif: 0x9e, wif: 0xef,
dustThreshold: 0, // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/core.h#L155-L160 dustThreshold: 546,
dustSoftThreshold: 100000000, // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/main.h#L62 feePerKb: 10000,
feePerKb: 100000000, // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/main.cpp#L58 estimateFee: estimateFee('testnet')
estimateFee: estimateFee('dogecoin')
}, },
litecoin: { litecoin: {
magicPrefix: '\x19Litecoin Signed Message:\n', magicPrefix: '\x19Litecoin Signed Message:\n',
@ -57,18 +42,19 @@ var networks = {
feePerKb: 100000, // https://github.com/litecoin-project/litecoin/blob/v0.8.7.2/src/main.cpp#L56 feePerKb: 100000, // https://github.com/litecoin-project/litecoin/blob/v0.8.7.2/src/main.cpp#L56
estimateFee: estimateFee('litecoin') estimateFee: estimateFee('litecoin')
}, },
testnet: { dogecoin: {
magicPrefix: '\x18Bitcoin Signed Message:\n', magicPrefix: '\x19Dogecoin Signed Message:\n',
bip32: { bip32: {
public: 0x043587cf, public: 0x02facafd,
private: 0x04358394 private: 0x02fac398
}, },
pubKeyHash: 0x6f, pubKeyHash: 0x1e,
scriptHash: 0xc4, scriptHash: 0x16,
wif: 0xef, wif: 0x9e,
dustThreshold: 546, dustThreshold: 0, // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/core.h#L155-L160
feePerKb: 10000, dustSoftThreshold: 100000000, // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/main.h#L62
estimateFee: estimateFee('testnet') feePerKb: 100000000, // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/main.cpp#L58
estimateFee: estimateFee('dogecoin')
}, },
viacoin: { viacoin: {
magicPrefix: '\x18Viacoin Signed Message:\n', magicPrefix: '\x18Viacoin Signed Message:\n',
@ -98,6 +84,20 @@ var networks = {
feePerKb: 100000, feePerKb: 100000,
estimateFee: estimateFee('viacointestnet') estimateFee: estimateFee('viacointestnet')
}, },
gamerscoin: {
magicPrefix: '\x19Gamerscoin Signed Message:\n',
bip32: {
public: 0x019da462,
private: 0x019d9cfe
},
pubKeyHash: 0x26,
scriptHash: 0x05,
wif: 0xA6,
dustThreshold: 0, // https://github.com/gamers-coin/gamers-coinv3/blob/master/src/main.cpp#L358-L363
dustSoftThreshold: 100000, // https://github.com/gamers-coin/gamers-coinv3/blob/master/src/main.cpp#L51
feePerKb: 100000, // https://github.com/gamers-coin/gamers-coinv3/blob/master/src/main.cpp#L54
estimateFee: estimateFee('gamerscoin')
},
jumbucks: { jumbucks: {
magicPrefix: '\x19Jumbucks Signed Message:\n', magicPrefix: '\x19Jumbucks Signed Message:\n',
bip32: { bip32: {

Loading…
Cancel
Save