-
Notifications
You must be signed in to change notification settings - Fork 391
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
minimum staking amounts not explained in tutorial (formerly "stake is the only denomination that works for delegating") #168
Comments
@marbar3778 are you the lead dev for the tutorial? |
Just a guy who try's to maintain it, but suppose to be mainly on tendermint, I'm flying tomorrow so will debug this on the plane |
I tested it out and was able to get it running with denom: {
"genesis_time": "2019-10-23T21:49:05.842914Z",
"chain_id": "test",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
"evidence": {
"max_age": "100000"
},
"validator": {
"pub_key_types": [
"ed25519"
]
}
},
"app_hash": "",
"app_state": {
"distribution": {
"fee_pool": {
"community_pool": []
},
"community_tax": "0.020000000000000000",
"base_proposer_reward": "0.010000000000000000",
"bonus_proposer_reward": "0.040000000000000000",
"withdraw_addr_enabled": true,
"delegator_withdraw_infos": [],
"previous_proposer": "",
"outstanding_rewards": [],
"validator_accumulated_commissions": [],
"validator_historical_rewards": [],
"validator_current_rewards": [],
"delegator_starting_infos": [],
"validator_slash_events": []
},
"params": null,
"nameservice": {
"whois_records": []
},
"supply": {
"supply": []
},
"staking": {
"params": {
"unbonding_time": "1814400000000000",
"max_validators": 100,
"max_entries": 7,
"bond_denom": "legends"
},
"last_total_power": "0",
"last_validator_powers": null,
"validators": null,
"delegations": null,
"unbonding_delegations": null,
"redelegations": null,
"exported": false
},
"genutil": {
"gentxs": [
{
"type": "cosmos-sdk/StdTx",
"value": {
"msg": [
{
"type": "cosmos-sdk/MsgCreateValidator",
"value": {
"description": {
"moniker": "as2",
"identity": "",
"website": "",
"details": ""
},
"commission": {
"rate": "0.100000000000000000",
"max_rate": "0.200000000000000000",
"max_change_rate": "0.010000000000000000"
},
"min_self_delegation": "1",
"delegator_address": "cosmos1gc329pwdwnjv4zvphe8jmahxd3rr5xe33u9vjy",
"validator_address": "cosmosvaloper1gc329pwdwnjv4zvphe8jmahxd3rr5xe35g3e7h",
"pubkey": "cosmosvalconspub1zcjduepqcdpj75cklk47j6sfkzrk4hf7z7nl33w6kmv4spxlza8ctku6aklslgz225",
"value": {
"denom": "legends",
"amount": "100000000"
}
}
}
],
"fee": {
"amount": [],
"gas": "200000"
},
"signatures": [
{
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "AyNo0ZihyGIfpaZlQxY4t4spQtas0BIY6Zr8vp8XR33l"
},
"signature": "LU8SyBHJwZ2zPfRRcNd9GTMpbnI7etkBfxolUzoLz7RVe9SV1vbKNEabIOnGjVsqRyreYuRkhHs16WDg96lyaQ=="
}
],
"memo": "6c89a014fd9c20471762bf38f39ca9f3953dae22@192.168.43.83:26656"
}
}
]
},
"bank": {
"send_enabled": true
},
"auth": {
"params": {
"max_memo_characters": "256",
"tx_sig_limit": "7",
"tx_size_cost_per_byte": "10",
"sig_verify_cost_ed25519": "590",
"sig_verify_cost_secp256k1": "1000"
}
},
"accounts": [
{
"address": "cosmos1gc329pwdwnjv4zvphe8jmahxd3rr5xe33u9vjy",
"coins": [
{
"denom": "legends",
"amount": "1000000000"
},
{
"denom": "stake",
"amount": "100000000"
}
],
"sequence_number": "0",
"account_number": "0",
"original_vesting": [],
"delegated_free": [],
"delegated_vesting": [],
"start_time": "0",
"end_time": "0",
"module_name": "",
"module_permissions": [
""
]
}
],
"slashing": {
"params": {
"max_evidence_age": "120000000000",
"signed_blocks_window": "100",
"min_signed_per_window": "0.500000000000000000",
"downtime_jail_duration": "600000000000",
"slash_fraction_double_sign": "0.050000000000000000",
"slash_fraction_downtime": "0.010000000000000000"
},
"signing_infos": {},
"missed_blocks": {}
}
}
} |
If I start the chain with your genesis.json, then switch to mine, it will run. Here is my genesis.json:
|
I have to double check but it seems the amount Isnt great enough, can you put a couple 0's I think min_self delegation looks at 1 while bond amount is 1/1000 th |
It worked with 100000000 tuckeratom. Is the minimum amount explained in the tutorial anywhere? If not, I guess it should be added to this part: https://github.com/cosmos/sdk-application-tutorial/blob/master/tutorial/build-run.md#running-the-live-network-and-using-the-commands Especially since the nametoken amounts are lower than the threshold, so someone trying to test out staking with nametokens would run into this error. -- I see here that min-self-delegation of 1 means 1000000uatom on mainnet: https://cosmos.network/docs/cosmos-hub/validators/validator-setup.html#create-your-validator Is there a way I can define utuckeratom to be 1/1000000 of a tuckeratom? |
This is a requirement of tendermint. See references: |
closing this issue, if there any further questions, please comment and ill be notified |
Hi,
I tried to use this tutorial to make a chain with only one token.
First, I changed bond_denom in genesis.json to tuckeratom.
Then, I gave all of the genesis accounts 1000 tuckeratom.
Finally, I made a gentx using --amount 1000tuckeratom.
I collected the gentx and validated the genesis.json, everything looked normal.
But when I run nsd, I get "ERROR: error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain"
This error does not appear if I use stake as the bond_denom and do the default gentx with 100000000stake.
But if I use stake as the bond_denom, I can't delegate tuckeratoms.
Has non-stake delegation worked for anyone else?
Thanks
The text was updated successfully, but these errors were encountered: