Skip to content

Commit

Permalink
Merge pull request #50 from SuperNETorg/v0.25
Browse files Browse the repository at this point in the history
V0.25
  • Loading branch information
pbca26 authored Mar 11, 2018
2 parents 6d3f9e0 + 8e2f38a commit ae7fe61
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 13 deletions.
8 changes: 5 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,19 +280,21 @@ function createWindow(status, hideLoadingWindow) {
mainWindow.startKMDNative = shepherd.startKMDNative;
mainWindow.addressVersionCheck = shepherd.addressVersionCheck;
mainWindow.getCoinByPub = shepherd.getCoinByPub;
mainWindow.resetSettings = function() { shepherd.saveLocalAppConf(__defaultAppSettings) };
mainWindow.resetSettings = () => { shepherd.saveLocalAppConf(__defaultAppSettings) };
mainWindow.createSeed = {
triggered: false,
firstLoginPH: 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) {
console.log(`notary node elections chain ${process.argv[i].replace('nvote=', '')}`);
mainWindow.nnVoteChain = process.argv[i].replace('nvote=', '');
}
}
}*/
} else {
mainWindow = new BrowserWindow({
width: 500,
Expand Down
23 changes: 21 additions & 2 deletions routes/electrumjs/electrumServers.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ let electrumServers = {
'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
address: 'electrum1.cipig.net',
port: 10009,
Expand Down Expand Up @@ -180,17 +191,25 @@ let electrumServers = {
'electrum2.cipig.net:10024'
],
},
vote: { // !estimatefee
vote2018: { // !estimatefee
address: 'electrum1.cipig.net',
port: 10021,
proto: 'tcp',
txfee: 10000,
abbr: 'VOTE',
abbr: 'VOTE2018',
serverList: [
'electrum1.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
address: 'electrum1.cipig.net',
port: 10004,
Expand Down
13 changes: 13 additions & 0 deletions routes/electrumjs/electrumjs.networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ networks.litecoin = {
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 = {
messagePrefix: '\x19Dogecoin Signed Message:\n',
bip32: {
Expand Down
3 changes: 2 additions & 1 deletion routes/ports.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const assetChainPorts = {
'MESH': '9455',
'AXO': '12927',
'ETOMIC': '10271',
'VOTE': '8012',
'VOTE2018': '15488',
'NINJA': '8427',
'BTCH': '8800',
};

Expand Down
10 changes: 7 additions & 3 deletions routes/shepherd/electrum/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ module.exports = (shepherd) => {

shepherd.isPos = (network) => {
if (network === 'BLK' ||
network === 'blk') {
network === 'blk' ||
network === 'DNR' ||
network === 'dnr') {
return true;
}
};
Expand Down Expand Up @@ -65,7 +67,8 @@ module.exports = (shepherd) => {
coin === 'KMD' ||
coin === 'BEER' ||
coin === 'PIZZA' ||
coin === 'VOTE' ||
coin === 'VOTE2018' ||
coin === 'NINJA' ||
coin === 'KOMODO' ||
coinUC === 'SUPERNET' ||
coinUC === 'REVS' ||
Expand All @@ -90,7 +93,8 @@ module.exports = (shepherd) => {
coinUC === 'BTCH' ||
coinUC === 'BEER' ||
coinUC === 'PIZZA' ||
coinUC === 'VOTE' ||
coinUC === 'VOTE2018' ||
coinUC === 'NINJA' ||
coinUC === 'KMD' ||
coinUC === 'KOMODO') {
return shepherd.electrumJSNetworks.komodo;
Expand Down
6 changes: 3 additions & 3 deletions version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version=0.2.0.29c
type=c-beta
minversion=0.2.0.29
version=0.2.0.30a
type=a-beta
minversion=0.2.0.30
2 changes: 1 addition & 1 deletion version_build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0.29c-beta
0.2.0.30a-beta

0 comments on commit ae7fe61

Please sign in to comment.