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

Addressing recent audit issues #1773

Merged
merged 9 commits into from
Aug 12, 2020
Merged

Addressing recent audit issues #1773

merged 9 commits into from
Aug 12, 2020

Conversation

JaredCorduan
Copy link
Contributor

@JaredCorduan JaredCorduan commented Aug 11, 2020

This PR addresses several recent audit issues, all concerned with syncing the formal spec to the implementation. No semantic changes are made. I always preferred to change the formal spec over the implementation, but in a few places it was better to change the implementation.

The changes to the implementation were:

  • a few variable name changes
  • the function createRUpd was previously taking the epoch in the implementation but not the formal spec. It was only used to get the "global constant" slotsPerEpoch (the hard fork combinator can change this). Now both the spec and the implementation are passed this constant.

closes #1728
closes #1745
closes #1748
closes #1751
closes #1752
closes #1753
closes #1764
closes #1765

@JaredCorduan
Copy link
Contributor Author

fyi @uroboros, I had to increase genTxRetries from 5 to 6, I was getting the "insufficient spending balance" error.

@uroboros
Copy link
Contributor

fyi @uroboros, I had to increase genTxRetries from 5 to 6, I was getting the "insufficient spending balance" error.

I think we might as well double it to 10

@@ -134,5 +134,5 @@ defaultConstants =
maxTreasury = 10000000,
minReserves = 1000000,
maxReserves = 10000000,
genTxRetries = 5
genTxRetries = 6
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
genTxRetries = 6
genTxRetries = 10

Copy link
Contributor

@uroboros uroboros left a comment

Choose a reason for hiding this comment

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

👍

@JaredCorduan JaredCorduan merged commit 46a623a into master Aug 12, 2020
@iohk-bors iohk-bors bot deleted the jc/audit-2020-08-11 branch August 12, 2020 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment