Browse Source

Merge pull request #50 from SuperNETorg/v0.25

V0.25
v0.25
pbca26 7 years ago
committed by GitHub
parent
commit
ae7fe6196a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      main.js
  2. 23
      routes/electrumjs/electrumServers.js
  3. 13
      routes/electrumjs/electrumjs.networks.js
  4. 3
      routes/ports.js
  5. 10
      routes/shepherd/electrum/network.js
  6. 6
      version
  7. 2
      version_build

8
main.js

@ -280,19 +280,21 @@ function createWindow(status, hideLoadingWindow) {
mainWindow.startKMDNative = shepherd.startKMDNative; mainWindow.startKMDNative = shepherd.startKMDNative;
mainWindow.addressVersionCheck = shepherd.addressVersionCheck; mainWindow.addressVersionCheck = shepherd.addressVersionCheck;
mainWindow.getCoinByPub = shepherd.getCoinByPub; mainWindow.getCoinByPub = shepherd.getCoinByPub;
mainWindow.resetSettings = function() { shepherd.saveLocalAppConf(__defaultAppSettings) }; mainWindow.resetSettings = () => { shepherd.saveLocalAppConf(__defaultAppSettings) };
mainWindow.createSeed = { mainWindow.createSeed = {
triggered: false, triggered: false,
firstLoginPH: null, firstLoginPH: null,
secondaryLoginPH: null, secondaryLoginPH: null,
}; };
for (let i = 0; i < process.argv.length; i++) { mainWindow.nnVoteChain = 'VOTE2018';
/*for (let i = 0; i < process.argv.length; i++) {
if (process.argv[i].indexOf('nvote') > -1) { if (process.argv[i].indexOf('nvote') > -1) {
console.log(`notary node elections chain ${process.argv[i].replace('nvote=', '')}`); console.log(`notary node elections chain ${process.argv[i].replace('nvote=', '')}`);
mainWindow.nnVoteChain = process.argv[i].replace('nvote=', ''); mainWindow.nnVoteChain = process.argv[i].replace('nvote=', '');
} }
} }*/
} else { } else {
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: 500, width: 500,

23
routes/electrumjs/electrumServers.js

@ -65,6 +65,17 @@ let electrumServers = {
'electrum2.cipig.net:10008' 'electrum2.cipig.net:10008'
], ],
}, },
dnr: { // !estimatefee
address: 'denarius.tech',
port: 50001,
proto: 'tcp',
txfee: 10000,
abbr: 'DNR',
serverList: [
'173.254.244.119:50001',
'173.254.244.122:50001'
],
},
hodl: { // !estimatefee hodl: { // !estimatefee
address: 'electrum1.cipig.net', address: 'electrum1.cipig.net',
port: 10009, port: 10009,
@ -180,17 +191,25 @@ let electrumServers = {
'electrum2.cipig.net:10024' 'electrum2.cipig.net:10024'
], ],
}, },
vote: { // !estimatefee vote2018: { // !estimatefee
address: 'electrum1.cipig.net', address: 'electrum1.cipig.net',
port: 10021, port: 10021,
proto: 'tcp', proto: 'tcp',
txfee: 10000, txfee: 10000,
abbr: 'VOTE', abbr: 'VOTE2018',
serverList: [ serverList: [
'electrum1.cipig.net:10021', 'electrum1.cipig.net:10021',
'electrum2.cipig.net:10021' 'electrum2.cipig.net:10021'
], ],
}, },
ninja: { // !estimatefee
address: 'electrum.fund.ninja',
port: 50001,
proto: 'tcp',
txfee: 10000,
abbr: 'NINJA',
serverList: 'none',
},
jumblr: { // !estimatefee jumblr: { // !estimatefee
address: 'electrum1.cipig.net', address: 'electrum1.cipig.net',
port: 10004, port: 10004,

13
routes/electrumjs/electrumjs.networks.js

@ -18,6 +18,19 @@ networks.litecoin = {
dustThreshold: 0 // https://github.com/litecoin-project/litecoin/blob/v0.8.7.2/src/main.cpp#L360-L365 dustThreshold: 0 // https://github.com/litecoin-project/litecoin/blob/v0.8.7.2/src/main.cpp#L360-L365
}; };
networks.dnr = {
messagePrefix: '\x19Denarius Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x1e,
scriptHash: 0x5a,
wif: 0x9e,
dustThreshold: 1000,
isPoS: true,
};
networks.dogecoin = { networks.dogecoin = {
messagePrefix: '\x19Dogecoin Signed Message:\n', messagePrefix: '\x19Dogecoin Signed Message:\n',
bip32: { bip32: {

3
routes/ports.js

@ -26,7 +26,8 @@ const assetChainPorts = {
'MESH': '9455', 'MESH': '9455',
'AXO': '12927', 'AXO': '12927',
'ETOMIC': '10271', 'ETOMIC': '10271',
'VOTE': '8012', 'VOTE2018': '15488',
'NINJA': '8427',
'BTCH': '8800', 'BTCH': '8800',
}; };

10
routes/shepherd/electrum/network.js

@ -22,7 +22,9 @@ module.exports = (shepherd) => {
shepherd.isPos = (network) => { shepherd.isPos = (network) => {
if (network === 'BLK' || if (network === 'BLK' ||
network === 'blk') { network === 'blk' ||
network === 'DNR' ||
network === 'dnr') {
return true; return true;
} }
}; };
@ -65,7 +67,8 @@ module.exports = (shepherd) => {
coin === 'KMD' || coin === 'KMD' ||
coin === 'BEER' || coin === 'BEER' ||
coin === 'PIZZA' || coin === 'PIZZA' ||
coin === 'VOTE' || coin === 'VOTE2018' ||
coin === 'NINJA' ||
coin === 'KOMODO' || coin === 'KOMODO' ||
coinUC === 'SUPERNET' || coinUC === 'SUPERNET' ||
coinUC === 'REVS' || coinUC === 'REVS' ||
@ -90,7 +93,8 @@ module.exports = (shepherd) => {
coinUC === 'BTCH' || coinUC === 'BTCH' ||
coinUC === 'BEER' || coinUC === 'BEER' ||
coinUC === 'PIZZA' || coinUC === 'PIZZA' ||
coinUC === 'VOTE' || coinUC === 'VOTE2018' ||
coinUC === 'NINJA' ||
coinUC === 'KMD' || coinUC === 'KMD' ||
coinUC === 'KOMODO') { coinUC === 'KOMODO') {
return shepherd.electrumJSNetworks.komodo; return shepherd.electrumJSNetworks.komodo;

6
version

@ -1,3 +1,3 @@
version=0.2.0.29c version=0.2.0.30a
type=c-beta type=a-beta
minversion=0.2.0.29 minversion=0.2.0.30

2
version_build

@ -1 +1 @@
0.2.0.29c-beta 0.2.0.30a-beta
Loading…
Cancel
Save