You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The InitChain request in initChain function call during simulation does not contain any consensus parameters (block, evidence, and validator).
Problem Definition
To improve the soundness and breadth of coverage in simulation, the simulator should account for and include consensus parameters in the initChain function call.
Proposal
Include consensus parameters in the initChain function call. Block and Validator parameters should be straightforward to generate - they can be randomly generated within a range as the initChain function already accepts an *rand.Rand argument.
However, the evidence parameters should be based on the trusting period (i.e. unbonding period) which resides in the app state defined in x/staking. Since app state is also already provided as an argument to initChain, we can decode and find the value.
Summary
The
InitChain
request ininitChain
function call during simulation does not contain any consensus parameters (block, evidence, and validator).Problem Definition
To improve the soundness and breadth of coverage in simulation, the simulator should account for and include consensus parameters in the
initChain
function call.Proposal
Include consensus parameters in the
initChain
function call. Block and Validator parameters should be straightforward to generate - they can be randomly generated within a range as theinitChain
function already accepts an*rand.Rand
argument.However, the evidence parameters should be based on the trusting period (i.e. unbonding period) which resides in the app state defined in x/staking. Since app state is also already provided as an argument to
initChain
, we can decode and find the value./cc @fedekunze
For Admin Use
The text was updated successfully, but these errors were encountered: