-
Notifications
You must be signed in to change notification settings - Fork 17
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
create-testnet-data: fix that treasury could be unexpectedly negative #644
Conversation
d55c46d
to
54052e3
Compare
54052e3
to
cdb4e93
Compare
cdb4e93
to
08c71fa
Compare
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.
👍
GenesisCmdDelegatedSupplyExceedsTotalSupply delegated total -> | ||
"Provided delegated supply is " <> pretty delegated <> ", which is greater than the specified total supply: " <> pretty total <> "." <> | ||
"This is incorrect: the delegated supply should be less or equal to the total supply." <> | ||
" Note that the total supply can either come from --total-supply or from the default template. Please fix what you use." |
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.
Which one takes precedent? The template or the cli parser?
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.
@Jimbo4350> the template takes precedence 👍
nonDelegCoin = getCoinForDistribution nonDelegCoinRaw | ||
delegCoin = getCoinForDistribution delegCoinRaw | ||
|
||
getCoinForDistribution :: Integer -> Natural |
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.
Hm. I don't like these hidden calculations. It is always better to be explicit.
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.
@Jimbo4350> note that it was like this before in create-staked
.
Changelog
Context
Fixes #643
How to trust this PR
I wanted to test that
cabal test cardano-testnet
passed oncardano-node
, using this version ofcardano-cli
; but it's not easy to do right now. Still I think this is safe.Checklist