Closed smelc closed 6 months ago
Another weirdness was reported (here on Slack): https://github.com/IntersectMBO/cardano-node/pull/5639/files#r1512199219
This seems be incosistent wrt. the template field sgMaxLovelaceSupply. In 1., it serves as base for the total supply - in 2., as base for the nonDelegCoin. Isn't the template field semantics (e.g. from genesis.spec.json) meant to be consistent across commands - namely create-staked and create-testnet-data?
@mgmeier> we checked with the ledger team (here on Slack) that it's the semantics of create-testnet-data
that is correct: sgMaxLovelaceSupply
is the total coin supply, not the non-delegated coins. create-staked
was doing it incorrectly, so you will need to adapt when/if changing from create-staked
to create-testnet-data
.
From @mgmeier here on Slack:
this seems to be doing the wrong thing. I.e., subtracting the amountDeleg from the total supply does not give you the delegated coin, rather the non-delegated coin. So I suspect, the values might end up being reversed here.
Cardano.CLI.EraBased.Run.CreateTestnetData.updateOutputTemplate: maximumLovelaceSupply :: Word64 maximumLovelaceSupply = sgMaxLovelaceSupply template