From 0e60631d8f29a3020c34bc1aea4d81ad911a7659 Mon Sep 17 00:00:00 2001 From: "David E. Perez Negron Rocha" Date: Wed, 6 Jan 2021 00:54:47 -0600 Subject: [PATCH] Fix Bug when a node is offline --- src/App.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/App.js b/src/App.js index 0b1d205..6fc0c53 100644 --- a/src/App.js +++ b/src/App.js @@ -144,9 +144,29 @@ class App extends React.Component { console.log('IPFS node ready with id ' + info.id) try{ await ipfs.swarm.connect('/dns4/node5.deca.green/tcp/443/wss/p2p/QmZL1otpiCzWMEJTHXbQ5Hb4aFE7TKLjAuuBAAet1WAgtD'); + }catch (error) + { + console.log(error) + } + try{ await ipfs.swarm.connect('/dns4/node0.deca.green/tcp/443/wss/p2p/Qmd4Cv2fNwixP6cabEnTVFkF57GUGD6VBEcDhUkqHPG4X9'); + }catch (error) + { + console.log(error) + } + try{ await ipfs.swarm.connect('/dns4/node4.deca.green/tcp/443/wss/p2p/QmQAbhxMCjQpNrdU3xJYZjjmd7bHXUGcLx2o7wfpvvzJvc'); + }catch (error) + { + console.log(error) + } + try{ await ipfs.swarm.connect("/dns4/node2.deca.green/tcp/443/wss/p2p/QmfBASmqe3Az9AUjCxx3dtomSmbZEiJCsXusPxznjNnjU5"); + }catch (error) + { + console.log(error) + } + try{ await ipfs.swarm.connect("/dns4/node.neetsec.com/tcp/443/wss/p2p/QmYDVy4LE5wsNecmHPpyUp8MDuSRtpYtQuDjpLhvRjfKTj"); }catch (error) {