cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.19k stars 3.58k forks source link

panic: validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction ({824641073632}) #20233

Closed umeraqeel786 closed 4 months ago

umeraqeel786 commented 4 months ago

The sentinelhub start command did not function as anticipated.

I am encountering validator errors. I've been referring to the official documentation (https://docs.sentinel.co/sentinel-hub/commands/list#add-genesis-account) for guidance.

Could someone please advise me on the cause of this issue or if there are any steps I might have overlooked in setting up SentinelHub?" As I think the issue is coming from cosmos side. Any help would be really appreciated.

sentinelhub start

Through error


> panic: validator set is empty after InitGenesis, please ensure at least one validator is initialized with a delegation greater than or equal to the DefaultPowerReduction ({824641073632})
> 
> goroutine 24 [running]:
> github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x35328e0, 0x4c51340}, {0x35483b0, 0xc001195200}, {{0x0, 0x0}, {0xc0010ac090, 0x11}, 0x0, ...}, ...}, ...)
>   github.com/cosmos/cosmos-sdk@v0.47.10/types/module/module.go:372 +0x474
> github.com/sentinel-official/hub/v12/app.(*App).InitChainer(_, {{0x35328e0, 0x4c51340}, {0x35483b0, 0xc001195200}, {{0x0, 0x0}, {0xc0010ac090, 0x11}, 0x0, ...}, ...}, ...)
>   github.com/sentinel-official/hub/v12/app/app.go:148 +0x185
> github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc0002fe3c0, {{0x2d54357e, 0xeddbc2ff2, 0x0}, {0xc0010ac090, 0x11}, 0xc000c28080, {0x4c51340, 0x0, 0x0}, ...})
>   github.com/cosmos/cosmos-sdk@v0.47.10/baseapp/abci.go:78 +0x515
> github.com/cometbft/cometbft/abci/client.(*localClient).InitChainSync(0xc000cb8540, {{0x2d54357e, 0xeddbc2ff2, 0x0}, {0xc0010ac090, 0x11}, 0xc000c28080, {0x4c51340, 0x0, 0x0}, ...})
>   github.com/cometbft/cometbft@v0.37.4/abci/client/local_client.go:275 +0x102
> github.com/cometbft/cometbft/proxy.(*appConnConsensus).InitChainSync(0xc0001218f0, {{0x2d54357e, 0xeddbc2ff2, 0x0}, {0xc0010ac090, 0x11}, 0xc000c28080, {0x4c51340, 0x0, 0x0}, ...})
>   github.com/cometbft/cometbft@v0.37.4/proxy/app_conn.go:85 +0x195
> github.com/cometbft/cometbft/consensus.(*Handshaker).ReplayBlocksWithContext(_, {_, _}, {{{0xb, 0x0}, {0x2826336, 0x6}}, {0xc0010ac090, 0x11}, 0x1, ...}, ...)
>   github.com/cometbft/cometbft@v0.37.4/consensus/replay.go:336 +0xeb8
> github.com/cometbft/cometbft/consensus.(*Handshaker).HandshakeWithContext(0xc001172090, {0x3532de8, 0x4c51340}, {0x354bb70, 0xc000728c40})
>   github.com/cometbft/cometbft@v0.37.4/consensus/replay.go:274 +0x398
> github.com/cometbft/cometbft/node.doHandshake({_, _}, {_, _}, {{{0xb, 0x0}, {0x2826336, 0x6}}, {0xc0010ac090, 0x11}, ...}, ...)
>   github.com/cometbft/cometbft@v0.37.4/node/node.go:449 +0x1a8
> github.com/cometbft/cometbft/node.NewNodeWithContext({0x3532de8, 0x4c51340}, 0xc001358000, {0x3516cf0, 0xc0013414a0}, 0xc0015120c0, {0x35070e0, 0xc0001812f0}, 0xc001233d60, 0x2efd698, ...)
>   github.com/cometbft/cometbft@v0.37.4/node/node.go:929 +0x59b
> github.com/cometbft/cometbft/node.NewNode(0x0?, {0x3516cf0?, 0xc0013414a0?}, 0x0?, {0x35070e0?, 0xc0001812f0?}, 0x1?, 0x4c51340?, 0x0?, {0x35329f8, ...}, ...)
>   github.com/cometbft/cometbft@v0.37.4/node/node.go:849 +0xa9
> github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x354a360, 0xc000f296b0}, 0x0, {0x0, 0x0}, {0x3554cc0, ...}, ...}, ...)
>   github.com/cosmos/cosmos-sdk@v0.47.10/server/start.go:372 +0x1597
> github.com/cosmos/cosmos-sdk/server.StartCmd.func2.2()
>   github.com/cosmos/cosmos-sdk@v0.47.10/server/start.go:153 +0x45
> github.com/cosmos/cosmos-sdk/server.wrapCPUProfile.func2()
>   github.com/cosmos/cosmos-sdk@v0.47.10/server/start.go:617 +0x23
> created by github.com/cosmos/cosmos-sdk/server.wrapCPUProfile in goroutine 1
>   github.com/cosmos/cosmos-sdk@v0.47.10/server/start.go:616 +0x23f
> 

Genesis file


> 
> {
>   "genesis_time": "2020-07-02T04:56:47.916052Z",
>   "chain_id": "test-chain-ETPJM3",
>   "consensus_params": {
>     "block": {
>       "max_bytes": "22020096",
>       "max_gas": "-1",
>       "time_iota_ms": "1000"
>     },
>     "evidence": {
>       "max_age_num_blocks": "100000",
>       "max_age_duration": "172800000000000"
>     },
>     "validator": {
>       "pub_key_types": [
>         "ed25519"
>       ]
>     }
>   },
>   "app_hash": "",
>   "app_state": {
>     "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": [
>        {
>           "type": "cosmos-sdk/Account",
>           "value": {
>             "address": "sent1h2fgkg7vj2a62z22trzjmcs5d0cl05hesqdu30",
>             "coins": [
>               {
>                 "denom": "dap",
>                 "amount": "10000000000"
>               },
>               {
>                 "denom": "dollar",
>                 "amount": "10000000"
>               },
>               {
>                 "denom": "stake",
>                 "amount": "100000000"
>               }
>             ],
>             "public_key": "AzHUhIzofcv5XSYbEs0CpX0uKV1RZjbDwVBopxCAoZjb",
>             "account_number": 0,
>             "sequence": 0
>           }
>         },
>         {
>           "type": "cosmos-sdk/Account",
>           "value": {
>             "address": "dx01l2ktgqpgj4d4nq0m2fcdgx7kphvgqs2zudf3cp",
>             "coins": [
>               {
>                 "denom": "dap",
>                 "amount": "10000000000"
>               },
>               {
>                 "denom": "dollar",
>                 "amount": "10000000"
>               },
>               {
>                 "denom": "stake",
>                 "amount": "100000000"
>               }
>             ],
>             "public_key": "",
>             "account_number": 0,
>             "sequence": 0
>           }
>         },
>         {
>           "type": "cosmos-sdk/Account",
>           "value": {
>             "address": "dx019qyhfy6ns3mtzpaxwxmzx0y2xz0pt2l0zvqp8f",
>             "coins": [
>               {
>                 "denom": "dap",
>                 "amount": "100"
>               },
>               {
>                 "denom": "dollar",
>                 "amount": "10000"
>               },
>               {
>                 "denom": "stake",
>                 "amount": "100000000"
>               }
>             ],
>             "public_key": "",
>             "account_number": 0,
>             "sequence": 0
>           }
>         },
>         {
>           "type": "cosmos-sdk/Account",
>           "value": {
>             "address": "dx01a7c9mdqpnq5p27c4cw94u3g4s5nl5cwffkdxsu",
>             "coins": [
>               {
>                 "denom": "dap",
>                 "amount": "100"
>               },
>               {
>                 "denom": "dollar",
>                 "amount": "10000"
>               },
>               {
>                 "denom": "stake",
>                 "amount": "100000000"
>               }
>             ],
>             "public_key": "",
>             "account_number": 0,
>             "sequence": 0
>           }
>         },
>         {
>           "type": "cosmos-sdk/Account",
>           "value": {
>             "address": "dx01jppmr9l66hl83x3rret8jntmchavvcljten63z",
>             "coins": [
>               {
>                 "denom": "dap",
>                 "amount": "10000000"
>               },
>               {
>                 "denom": "dollar",
>                 "amount": "10000"
>               },
>               {
>                 "denom": "stake",
>                 "amount": "100000000"
>               }
>             ],
>             "public_key": "",
>             "account_number": 0,
>             "sequence": 0
>           }
>         }
>       ]
>     },
>     "gov": {
>       "starting_proposal_id": "1",
>       "deposits": null,
>       "votes": null,
>       "proposals": null,
>       "deposit_params": {
>         "min_deposit": [
>           {
>             "denom": "stake",
>             "amount": "10000000"
>           }
>         ],
>         "max_deposit_period": "172800000000000"
>       },
>       "voting_params": {
>         "voting_period": "172800000000000"
>       },
>       "tally_params": {
>         "quorum": "0.334000000000000000",
>         "threshold": "0.500000000000000000",
>         "veto": "0.334000000000000000"
>       }
>     },
>     "project": {
>       "project_docs": null,
>       "account_maps": null,
>       "withdrawal_infos": null,
>       "params": {
>         "dp_did": "did:dxp:PGtRP4o5cCYhe8B5Fu7xj6",
>         "project_minimum_initial_funding": "1"
>       }
>     },
>     "did": {
>       "did_docs": null
>     },
>     "oracles": {
>       "oracles": [
>         {
>           "oracle_did": "did:dxp:XX1rB7o9BeEmNuvB5PeAn2",
>           "capabilities": [
>             {
>               "denom": "dap",
>               "capabilities": [
>                 "mint"
>               ]
>             }
>           ]
>         },
>         {
>           "oracle_did": "did:dxp:Xc7PR8S7A6AzreYR5th2h4",
>           "capabilities": [
>             {
>               "denom": "dap",
>               "capabilities": [
>                 "mint",
>                 "burn",
>                 "transfer"
>               ]
>             }
>           ]
>         },
>         {
>           "oracle_did": "did:dxp:QmuNtGJCJZuU8wm8e9PSWk",
>           "capabilities": [
>             {
>               "denom": "dollar",
>               "capabilities": [
>                 "transfer"
>               ]
>             },
>             {
>               "denom": "dap",
>               "capabilities": [
>                 "transfer"
>               ]
>             }
>           ]
>         },
>         {
>           "oracle_did": "did:dxp:PQQMd4iP8XUpctiETKRhW2",
>           "capabilities": [
>             {
>               "denom": "dollar",
>               "capabilities": [
>                 "transfer",
>                 "burn",
>                 "mint"
>               ]
>             }
>           ]
>         }
>       ]
>     },
>     "slashing": {
>       "params": {
>         "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": {}
>     },
>     "staking": {
>       "params": {
>         "unbonding_time": "1814400000000000",
>         "max_validators": 100,
>         "max_entries": 7,
>         "historical_entries": 0,
>         "bond_denom": "stake"
>       },
>       "last_total_power": "0",
>       "last_validator_powers": null,
>       "validators": null,
>       "delegations": null,
>       "unbonding_delegations": null,
>       "redelegations": null,
>       "exported": false
>     },
>     "params": null,
>     "treasury": null,
>     "upgrade": {},
>     "crisis": {
>       "constant_fee": {
>         "denom": "stake",
>         "amount": "1000"
>       }
>     },
>     "mint": {
>       "minter": {
>         "inflation": "0.130000000000000000",
>         "annual_provisions": "0.000000000000000000"
>       },
>       "params": {
>         "mint_denom": "stake",
>         "inflation_rate_change": "0.130000000000000000",
>         "inflation_max": "0.200000000000000000",
>         "inflation_min": "0.070000000000000000",
>         "goal_bonded": "0.670000000000000000",
>         "blocks_per_year": "6311520"
>       }
>     },
>     "evidence": {
>       "params": {
>         "max_evidence_age": "120000000000"
>       },
>       "evidence": []
>     },
>     "nameservice": {
>       "whois_records": []
>     },
>     "genutil": {
>       "gentxs": [
>         {
>           "type": "cosmos-sdk/StdTx",
>           "value": {
>             "msg": [
>               {
>                 "type": "cosmos-sdk/MsgCreateValidator",
>                 "value": {
>                   "description": {
>                     "moniker": "dphomeworld",
>                     "identity": "",
>                     "website": "",
>                     "security_contact": "",
>                     "details": ""
>                   },
>                   "commission": {
>                     "rate": "0.100000000000000000",
>                     "max_rate": "0.100000000000000000",
>                     "max_change_rate": "0.100000000000000000"
>                   },
>                   "min_self_delegation": "1",
>                   "delegator_address": "dx01l2ktgqpgj4d4nq0m2fcdgx7kphvgqs2zudf3cp",
>                   "validator_address": "dx0valoper1l2ktgqpgj4d4nq0m2fcdgx7kphvgqs2zstn6ap",
>                   "pubkey": "dx0valconspub1zcjduepq28yh79fasqs4cuznz28tl9f0wluqd9ke8cchgqnwyztczqghravqwdff8v",
>                   "value": {
>                     "denom": "dap",
>                     "amount": "10000"
>                   }
>                 }
>               }
>             ],
>             "fee": {
>               "amount": [],
>               "gas": "200000"
>             },
>             "signatures": [
>               {
>                 "pub_key": {
>                   "type": "tendermint/PubKeySecp256k1",
>                   "value": "A719u7lf5sPXLfWDIChWhcqIJ5BLaTmwy+FMdcU+ok8o"
>                 },
>                 "signature": "A4MdfCOHTcr5BHNSrOFPMYbsRNrlXVubOLWrbZnxkPJewN8/7aGaurVLtliRtkKBWgSCeQNZrO2Tep2pz3Bjow=="
>               }
>             ],
>             "memo": "3155140d5e45a746ab5eea952a3d3c0576b27087@192.168.1.2:26656"
>           }
>         }
>       ]
>     },
>     "bonds": {
>       "bonds": null,
>       "batches": null
>     },
>     "bonddoc": {
>       "bond_docs": null
>     },
>     "distribution": {
>       "params": {
>         "community_tax": "0.020000000000000000",
>         "base_proposer_reward": "0.010000000000000000",
>         "bonus_proposer_reward": "0.040000000000000000",
>         "withdraw_addr_enabled": true
>       },
>       "fee_pool": {
>         "community_pool": []
>       },
>       "delegator_withdraw_infos": [],
>       "previous_proposer": "",
>       "outstanding_rewards": [],
>       "validator_accumulated_commissions": [],
>       "validator_historical_rewards": [],
>       "validator_current_rewards": [],
>       "delegator_starting_infos": [],
>       "validator_slash_events": []
>     },
>     "bank": {
>       "send_enabled": true
>     },
>     "payments": {
>       "params": {
>         "ixo_factor": "1.000000000000000000",
>         "initiation_fee_amount": "500000.000000000000000000",
>         "initiation_node_fee_percentage": "0.000000000000000000",
>         "claim_fee_amount": "600.000000000000000000",
>         "evaluation_fee_amount": "400.000000000000000000",
>         "service_agent_registration_fee_amount": "0.000000000000000000",
>         "evaluation_agent_registration_fee_amount": "0.000000000000000000",
>         "node_fee_percentage": "0.500000000000000000",
>         "evaluation_pay_fee_percentage": "0.100000000000000000",
>         "evaluation_pay_node_fee_percentage": "0.400000000000000000"
>       },
>       "payment_templates": null,
>       "payment_contracts": null,
>       "subscriptions": null
>     },
>     "supply": {
>       "supply": []
>     }
>   }
> }
tac0turtle commented 4 months ago

Hey this seems more like a question. Can you use the cosmos discussion board please