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

[WIP] First draft #1

Merged
merged 10 commits into from
Dec 5, 2018
Merged

[WIP] First draft #1

merged 10 commits into from
Dec 5, 2018

Conversation

eezcjkr
Copy link
Contributor

@eezcjkr eezcjkr commented Dec 4, 2018

needs a bunch of minor changes to be complete

@eezcjkr eezcjkr requested a review from troggy December 4, 2018 16:29
setup.js Outdated
let slotId = 0;
for (let i = 0; i < nodes.length; i++) {
let node = nodes[i];
const info = await node.web3.getValidatorInfo();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be a part of our API, you can fetch it from tendermint directly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if we'll implement leapdao/leap-node#108 it can come in handy 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is very useful. It basically allows us to say to the node: please identify yourself. We definitely need this for the ethereum address, so might as well add tendermint next to it no?

// Wait for setup to propagate to all the nodes
await sleep(15000);

var testPath = require("path").join(__dirname, "tests");
Copy link
Member

@sunify sunify Dec 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a really bad feeling about that. You basically just implemented test runner but without features. But there are tons of nice test runners (jest for example) that you can setup like that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted and will be done, but closing this PR for now.

@eezcjkr eezcjkr merged commit e5b0638 into master Dec 5, 2018
@eezcjkr eezcjkr deleted the pr branch December 5, 2018 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants