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

Use the correct nonce! #1651

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Use the correct nonce! #1651

merged 2 commits into from
Jul 14, 2020

Conversation

nc6
Copy link
Contributor

@nc6 nc6 commented Jul 13, 2020

Spotted this while looking at another issue, it seems we were using the "previous epoch hash header" nonce as the epoch nonce, which would skip most of the randomness...

@nc6 nc6 requested a review from JaredCorduan July 13, 2020 14:12
@nc6 nc6 requested a review from uroboros as a code owner July 13, 2020 14:12
@@ -322,4 +322,4 @@ updateChainDepState
csProtocol,
bh
)
STS.Tickn.TicknState _ epochNonce = csTickn
epochNonce = STS.Tickn.ticknStateEpochNonce csTickn
Copy link
Contributor

Choose a reason for hiding this comment

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

much better!

Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

👍

@nc6 nc6 merged commit fd35fac into master Jul 14, 2020
@iohk-bors iohk-bors bot deleted the nc/nonce branch July 14, 2020 08:04
@nc6 nc6 mentioned this pull request Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants