Skip to content

Types for new slashing#1585

Merged
jacogr merged 3 commits intomasterfrom
jg-new-slashing
Nov 19, 2019
Merged

Types for new slashing#1585
jacogr merged 3 commits intomasterfrom
jg-new-slashing

Conversation

@jacogr
Copy link
Member

@jacogr jacogr commented Nov 19, 2019

@jacogr jacogr added the WIP Work in Progress label Nov 19, 2019
const epochStartSlot = epochIndex.mul(epochDuration).add(epochOrGenesisStartSlot);
const sessionProgress = currentSlot.sub(epochStartSlot);
const eraProgress = currentIndex.sub(currentEraStartSessionIndex).add(sessionProgress);
const eraProgress = currentIndex.sub(currentEraStartSessionIndex).mul(epochDuration).add(sessionProgress);
Copy link
Member Author

Choose a reason for hiding this comment

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

Bugfix. Not sure where this went, without it the era progress era calcs are completely wrong.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have not seen this before since Kusama is running on forcing new eras - however visible on local substrate 2.x dev node (1.x is fine)

@jacogr jacogr removed the WIP Work in Progress label Nov 19, 2019
@jacogr jacogr merged commit b2daf74 into master Nov 19, 2019
@jacogr jacogr deleted the jg-new-slashing branch November 19, 2019 12:59
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants