-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
setup.js
Outdated
let slotId = 0; | ||
for (let i = 0; i < nodes.length; i++) { | ||
let node = nodes[i]; | ||
const info = await node.web3.getValidatorInfo(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
needs a bunch of minor changes to be complete