Fixes for non-default staking token#3574
Conversation
|
Sorry to bring this up, but is this resolved? I noticed that when I ran the gentx command, the denom value in the generated file referred to "stake" instead of the non-default staking token foo that I was using when I manually edited config/genesis.json earlier and replaced bond_denom (right after I ran init). So it appears that I could run the gentx command and end up with a "broken" setup, due to different names for staking tokens. |
|
Yes, this is resolved. When you execute gentx, it doesn't infer any bond denomination for you. The only case when it infers the default denomination is when you completely omit the self-delegation amount -- which you should not do. defaultAmount = defaultTokens.String() + sdk.DefaultBondDenomNow if you specified an amount AND it still used |
|
Got it. Thanks. I think this related to something I asked in another thread, so much appreciated for this. I was able to resolve the matter with this information. |
Fixes two issues discovered when using an alternative bond token denomination other than
stakecollect-gentxuses default denom when computing supply.For Admin Use: