Closed mkoura closed 1 year ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.
@mkoura has this been resolved on master
?
@Jimbo4350 no, still present on master.
This is what happens when I try this on master
:
$ cardano-cli version
cardano-cli 1.36.0 - darwin-aarch64 - ghc-8.10
git rev d9ff0ef9e53fad2761077b90aeeb0f337b863689
$ cardano-cli genesis create-staked --genesis-dir ./create_staked --testnet-magic 42 --gen-pools 3 --gen-utxo-keys 1 --supply 11250000000000000 --gen-stake-delegs 3 --supply-delegated 5625000000000000
generated genesis with: 3 genesis keys, 1 non-delegating UTxO keys, 3 stake pools, 3 delegating UTxO keys, 3 delegation map entries,
$ cat create_staked/genesis.json | jq .initialFunds
{
"6070b0c5de1fdc3a9bf9b48eb112964fa7efe7cb8e7a8223a62b77c053": 10125000000000000,
"009e87ae3ca7e162bc82027bc4ab5b0e37768eefc22fb18e10bd8b6d5a6c2fb48537d888d977ee76fca25ac88c94d689461257731e73afaa59": 1500000000000000,
"00f379be67d3c2ee7a993b3a45f56fd2097873830387eabae4ff0c18f0b7e53bf2d9570c78ecbaf3a58926e57c93a7e2b8412ea20245ca8278": 1500000000000000,
"00c5d9feff590ce9457f026a9eeabaf994309b0e1c8e0ca2c41158a06394b951edda2b604511f246ee8dcc185dc0bce2f1facdba23c45a48e4": 1500000000000000
}
I'm unable to reproduce the uneven distribution.
@newhoggy I can confirm your results, looks like this was recently fixed by https://github.com/input-output-hk/cardano-node/pull/4765.
Internal/External Internal
Area Other Any other topic (Delegation, Ranking, ...).
Summary The
cardano-cli genesis create-staked
command calculates wrong values for amounts provided by--supply
and--supply-delegated
. Moreover, the supply distribution is not even across stake holders.On master, command
produces
Notice that the supply is not evenly distributed. The non-delegated supply is
1.8 x supply
, the sum of delegated supply is1.6 x supply-delegated
.With cardano-cli 1.35.3, the same
cardano-cli genesis create-staked
command as above producesIn this case, the supply is evenly distributed across stake holders and each sum (delegated and non-delegated stake) doesn't exceed the provided supply.
Expected behavior The supply is evenly distributed and doesn't exceed the provided amount.
System info: