-
Notifications
You must be signed in to change notification settings - Fork 337
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
Test staking #277
Test staking #277
Conversation
@4meta5 this is the branch im going to use to test staking |
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.
Nice, I want to work off this
@4meta5 Added some tests.
|
@joelamouche You cannot revoke a nomination if it leaves your remaining total nominations below
So this is why there is no change after In this case, |
Thanks!
|
ready for review |
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.
Nice job!
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.
Did you update test-staking-spec.json
since the latest changes to staking were merged into master? I think the changes will make the local binary incompatible with the test-staking-spec.json
. They have different WASM blobs (frameSystem code field).
@4meta5 Good point! let me know if that's the right code |
I'm still getting the following error for reading
Also, we should add these tests passing to the CI. The CI isn't telling us anything about these tests now so it is misleading. |
That is not planned yet. What do you think @crystalin |
@4meta5 can you try it again? it works for me now |
@joelamouche It works now for me, I think this can be merged. |
What does it do?
What important points reviewers should know?
run
yarn run build-moonbeam-launch
before runningts-node test-staking.ts
intools
Is there something left for follow-up PRs?
// TODO: leave_candidates
// TODO: ethan (added candidate) doesnt produce blocks => need to move blockPerRound to storage
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?
Checklist