Browse Source

spv qutum, btx, btcz, hodlc

v0.25
pbca26 7 years ago
parent
commit
550685bf0b
  1. 55
      routes/electrumjs/electrumServers.js
  2. 66
      routes/electrumjs/electrumjs.networks.js
  3. 1
      routes/electrumjs/electrumjs.txdecoder-pos.js
  4. 4
      routes/shepherd/electrum/network.js

55
routes/electrumjs/electrumServers.js

@ -443,6 +443,61 @@ let electrumServers = {
'electrum2.cipig.net:10055'
],
},
hodlc: {
address: 'hodl.amit177.cf',
port: 17989,
proto: 'tcp',
txfee: 5000,
abbr: 'HODLC',
serverList: [
'hodl.amit177.cf:17989',
'hodl2.amit177.cf:17898'
],
},
btx: {
address: 'electrum1.cipig.net',
port: 10057,
proto: 'tcp',
txfee: 50000,
abbr: 'BTX',
serverList: [
'electrum1.cipig.net:10057',
'electrum2.cipig.net:10057'
],
},
btcz: {
address: 'electrum1.cipig.net',
port: 10056,
proto: 'tcp',
txfee: 10000,
abbr: 'BTCZ',
serverList: [
'electrum1.cipig.net:10056',
'electrum2.cipig.net:10056'
],
},
grs: {
address: 'electrum10.groestlcoin.org',
port: 50001,
proto: 'tcp',
txfee: 50000,
abbr: 'GRS',
serverList: [
'electrum10.groestlcoin.org:50001',
'electrum11.groestlcoin.org:50001'
],
},
qtum: {
address: 's1.qtum.info',
port: 50001,
proto: 'tcp',
txfee: 400000,
abbr: 'QTUM',
serverList: [
's1.qtum.info:50001',
's2.qtum.info:50001'
],
},
};
electrumServers.crw = electrumServers.crown;

66
routes/electrumjs/electrumjs.networks.js

@ -254,7 +254,7 @@ networks.zcash = {
};
networks.hush = {
messagePrefix: '\Hush Signed Message:\n',
messagePrefix: '\x19Hush Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
@ -266,7 +266,7 @@ networks.hush = {
};
networks.zcl = {
messagePrefix: '\Zclassic Signed Message:\n',
messagePrefix: '\x19Zclassic Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
@ -278,7 +278,7 @@ networks.zcl = {
};
networks.xmy = {
messagePrefix: '\Myriad Signed Message:\n',
messagePrefix: '\x19Myriad Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
@ -289,6 +289,66 @@ networks.xmy = {
dustThreshold: 1000,
};
networks.hodlc = {
messagePrefix: '\x19Hodlc Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x28,
scriptHash: 0x5,
wif: 0x28 + 128,
dustThreshold: 1000,
};
networks.qtum = {
messagePrefix: '\x19Qtum Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x3A,
scriptHash: 0x32,
wif: 0x80,
dustThreshold: 1000,
};
networks.btx = {
messagePrefix: '\x19Bitcore Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x0,
scriptHash: 0x5,
wif: 0x80,
dustThreshold: 1000,
};
networks.btcz = {
messagePrefix: '\x19BitcoinZ Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x1cb8,
scriptHash: 0x1cbd,
wif: 0x80,
dustThreshold: 1000,
};
networks.grs = { // fails to gen a proper addr
messagePrefix: '\x19Groestlcoin Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x24,
scriptHash: 0x5,
wif: 0x80,
dustThreshold: 1000,
};
networks.btc = networks.bitcoin;
networks.crw = networks.crown;
networks.dgb = networks.digibyte;

1
routes/electrumjs/electrumjs.txdecoder-pos.js

@ -81,7 +81,6 @@ var decodeOutput = function(tx, network) {
break;
}
console.log(vout);
return vout;
}

4
routes/shepherd/electrum/network.js

@ -13,7 +13,9 @@ module.exports = (shepherd) => {
network === 'HUSH' ||
network === 'hush' ||
network === 'ZCL' ||
network === 'zcl') {
network === 'zcl' ||
network === 'BTCZ' ||
network === 'btcz') {
return true;
}
};

Loading…
Cancel
Save