Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
write static-nodes.json to the right location
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava authored and ryanml committed Aug 13, 2018
1 parent 30a537d commit a9fe0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ethWallet-geth.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const configurePeers = async (dataDir) => {

const enodes = newNodes.map(({name, port}, i) => `enode://${newNodesPublicKeys[i]}@${newNodesIps[i]}:${port}`)

await fs.writeFile(path.join(dataDir, 'static-nodes.json'), JSON.stringify(enodes))
await fs.writeFile(path.join(dataDir, 'geth', 'static-nodes.json'), JSON.stringify(enodes))
} catch (e) {
console.error('Failed to configure static nodes peers ' + e.message)
}
Expand Down

0 comments on commit a9fe0dc

Please sign in to comment.