Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer patch ( mongoose + gulpify + small cleanup ) #305

Merged
merged 10 commits into from Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions db-internal.js

This file was deleted.

8 changes: 0 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,5 @@ services:
MONGO_URI: 'mongodb://db/explorerDB'
depends_on:
- db
richlist:
This conversation was marked as resolved.
Show resolved Hide resolved
build: .
command: ./tools/richlist.js
restart: "no"
environment:
MONGO_URI: 'mongodb://db/explorerDB'
depends_on:
- db
db:
image: mongo
12 changes: 0 additions & 12 deletions routes/web3relay.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

const Web3 = require('web3');
const web3explorer = require('web3-explorer');

let web3;

Expand Down Expand Up @@ -50,17 +49,6 @@ web3 = new Web3(new Web3.providers.WebsocketProvider(`ws://${config.nodeAddr}:${
if (web3.eth.net.isListening()) console.log('Web3 connection established');
else throw 'No connection, please specify web3host in conf.json';

async function detectNode() {
const nodeInfo = await web3.eth.getNodeInfo();

if (nodeInfo.split('/')[0].toLowerCase().includes('parity')) {
console.log('Web3 has detected parity node configuration');
web3explorer(web3);
}
console.log(`Node version = ${nodeInfo}`);
}
detectNode();

exports.data = async (req, res) => {
console.log(req.body);

Expand Down