diff options
| author | xiphon <xiphon@protonmail.com> | 2019-09-02 21:32:36 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-09-09 15:24:26 +0000 |
| commit | 0d247a9b8a2fa6770d1834584eedb109c6ab7e3d (patch) | |
| tree | 353d9c588cc280c869d2cb07feabd3422e540431 /js | |
| parent | a5b2d5e727c44d03c5f3f96d9726658caa9cdb6d (diff) | |
| download | monzero-gui-0d247a9b8a2fa6770d1834584eedb109c6ab7e3d.tar.gz monzero-gui-0d247a9b8a2fa6770d1834584eedb109c6ab7e3d.tar.xz monzero-gui-0d247a9b8a2fa6770d1834584eedb109c6ab7e3d.zip | |
SimpleMode: automatic public nodes discovering and switching
Diffstat (limited to 'js')
| -rw-r--r-- | js/Utils.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/js/Utils.js b/js/Utils.js index 4a9a5fed..96786650 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -94,16 +94,6 @@ function netTypeToString(){ return nettype == 1 ? qsTr("Testnet") : nettype == 2 ? qsTr("Stagenet") : qsTr("Mainnet"); } -function randomChoice(arr){ - return arr[Math.floor(Math.random() * arr.length)]; -} - -function filterNodes(nodes, port) { - if(typeof data === 'number') - port = port.toString(); - return nodes.filter(function(_){return _.indexOf(port) !== -1}); -} - function epoch(){ return Math.floor((new Date).getTime()/1000); } |
