Skip to content
Permalink
Browse files

Merge pull request #124 from rixombea/master

add support for old json node list format
  • Loading branch information...
rixombea committed Apr 4, 2019
2 parents b4d0a5a + 21e908f commit 8fd5bb0fbf7b1086c14c793c0db9d8f86e6386d9
Showing with 4 additions and 1 deletion.
  1. +1 −1 .jshintrc
  2. +3 −0 main.js
@@ -28,7 +28,7 @@
"boss" : false,
"debug" : false,
"eqnull" : false,
"esversion" : 6,
"esversion" : 7,
"moz" : false,
"evil" : false,
"expr" : false,
@@ -272,6 +272,9 @@ function doNodeListUpdate() {
res.on('end', () => {
try {
var pnodes = JSON.parse(result);
if(pnodes.hasOwnProperty('node')) {
pnodes = pnodes.node;
}
storeNodeList(pnodes);
settings.set('pubnodes_last_updated', new Date().getTime());
settings.delete('pubnodes_tested');

0 comments on commit 8fd5bb0

Please sign in to comment.
You can’t perform that action at this time.