Skip to content
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

fix: TotalLiquidShares nil handling logic in slashing #397

Merged
merged 1 commit into from Apr 25, 2023

Conversation

xlab
Copy link
Contributor

@xlab xlab commented Apr 25, 2023

Also, both TotalLiquidShares and TotalValidatorBondShares shouldn't be nil in state, this will be handled by a migration later:
https://github.com/persistenceOne/persistenceCore/pull/195/files

@xlab xlab requested review from ajeet97 and puneet2019 April 25, 2023 10:37
@github-actions
Copy link

Coverage after merging b/fix-validator-state into master

7.62%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
simapp
   test_suite.go100%100%0%..., 52, 53, 54, 56
   state.go100%100%0%..., 94, 97, 98, 99
   utils.go100%100%20.25%..., 96, 97, 98, 99
   genesis_account.go100%100%100%
   encoding.go100%100%100%
   app.go100%100%79.43%..., 686, 687, 688, 689
   test_helpers.go100%100%22.38%..., 78, 79, 80, 82
   config.go100%100%56.10%..., 72, 73, 74, 75
   export.go100%100%15.27%..., 93, 97, 98, 99
   genesis.go100%100%100%
simapp/simd/cmd
   testnet.go100%100%79.44%..., 408, 409, 62, 63
   genaccounts.go100%100%71.54%..., 95, 96, 97, 98
   root.go100%100%81.94%..., 64, 65, 68, 69
x/epochs/client/cli
   query.go100%100%0%..., 95, 96, 97, 98
   tx.go100%100%0%..., 22, 23, 24, 25
x/epochs/keeper
   epoch.go100%100%85.71%..., 26, 62, 88, 93
   grpc_query.go100%100%38.46%..., 51, 53, 54, 55
   keeper.go100%100%92.86%30
   hooks.go100%100%100%
   genesis.go100%100%90.91%14
   abci.go100%100%100%
x/epochs/types
   hooks.go100%100%100%
   keys.go100%100%0%20, 21, 22
   query.pb.go100%100%2.24%..., 96, 97, 98, 99
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
   identifier.go100%100%0%..., 25, 7, 8, 9
   genesis.go100%100%59.18%..., 57, 58, 61, 62
   genesis.pb.go100%100%28.80%..., 96, 97, 98, 99
x/halving/simulation
   genesis.go100%100%100%
   params.go100%100%100%
x/halving/types
   query.pb.go100%100%1.91%..., 96, 97, 98, 99
   genesis.go100%100%86.67%25, 26
   query.pb.gw.go100%100%0%..., 95, 96, 97, 98
   params.go100%100%85.29%23, 24, 25, 43, 44
   genesis.pb.go100%100%2.55%..., 68, 69, 98, 99
   halving.pb.go100%100%2.76%..., 96, 97, 98, 99
x/interchainquery
   module.go100%100%62.50%..., 87, 90, 91, 92
   handler.go100%100%40%17, 18, 19
   genesis.go100%100%54.55%21, 22, 23, 24, 25
x/interchainquery/keeper
   queries.go100%100%98%67
   keeper.go100%100%67.59%..., 43, 66, 67, 89
   abci.go100%100%92.68%58, 59, 60
   msg_server.go100%100%65.08%..., 71, 74, 82, 83
   grpc_query.go100%100%74.07%..., 33, 40, 43, 44
x/interchainquery/types
   query.pb.go100%100%1.32%..., 996, 997, 998, 999
   msgs.go100%100%56%..., 42, 48, 49, 50
   keys.go100%100%0%28, 29, 30
   codec.go100%100%100%
   messages.pb.go100%100%3.58%..., 96, 97, 98, 99
   genesis.pb.go100%100%0.76%..., 996, 997, 998, 999
   genesis.go100%100%63.64%15, 16, 17, 18
   messages.pb.gw.go100%100%0%..., 92, 93, 95, 99
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
x/lsnative/distribution
   module.go100%100%0%..., 81, 82, 83, 99
   handler.go100%100%0%..., 14, 15, 17, 18
   abci.go100%100%0%..., 32, 33, 36, 37
x/lsnative/distribution/client/cli
   utils.go100%100%63.64%16, 17, 20, 21
   query.go100%100%0%..., 95, 97, 98, 99
   tx.go100%100%4.01%..., 96, 97, 98, 99
x/lsnative/distribution/client/common
   common.go100%100%15.25%..., 91, 92, 93, 95
x/lsnative/distribution/client/testutil
   grpc_query_suite.go100%100%99.76%459
   helpers.go100%100%100%
   withdraw_all_suite.go100%100%100%
   suite.go100%100%98.68%..., 632, 633, 634, 635
x/lsnative/distribution/keeper
   proposal_handler.go100%100%0%..., 25, 26, 27, 28
   querier.go100%100%0%..., 95, 96, 97, 98
   msg_server.go100%100%0%..., 96, 97, 98, 99
   migrations.go100%100%0%..., 17, 20, 21, 22
   fee_pool.go100%100%0%..., 26, 27, 29, 30
   delegation.go100%100%0%..., 89, 90, 91, 92
   genesis.go100%100%0%..., 92, 93, 94, 99
   grpc_query.go100%100%0%..., 95, 96, 98, 99
   validator.go100%100%0%..., 96, 97, 98, 99
   allocation.go100%100%0%..., 96, 97, 98, 99
   store.go100%100%0%..., 95, 96, 97, 98
   params.go100%100%0%..., 41, 42, 43, 9
   invariants.go100%100%0%..., 93, 94, 96, 99
   alias_functions.go100%100%0%..., 17, 20, 21, 22
   hooks.go100%100%0%..., 94, 97, 98, 99
   keeper.go100%100%0%..., 95, 96, 97, 98
x/lsnative/distribution/migrations/v043
   helpers.go100%100%100%
   store.go100%100%100%
x/lsnative/distribution/simulation
   genesis.go100%100%0%..., 80, 81, 83, 84
   proposals.go100%100%0%..., 46, 47, 48, 49
   operations.go100%100%0%..., 96, 97, 98, 99
   params.go100%100%0%..., 33, 36, 37, 38
   decoder.go100%100%0%..., 63, 64, 66, 67
x/lsnative/distribution/types
   genesis.pb.go100%100%0.64%..., 996, 997, 998, 999
   codec.go100%100%52.78%..., 40, 41, 42, 43
   proposal.go100%100%12.12%..., 67, 68, 69, 70
   querier.go100%100%0%..., 84, 92, 93, 94
   validator.go100%100%0%..., 44, 45, 46, 47
   query.pb.gw.go100%100%0%..., 994, 995, 996, 998
   fee_pool.go100%100%0%..., 19, 20, 21, 23
   params.go100%100%46.88%..., 69, 70, 71, 73
   delegator.go100%100%0%..., 13, 14, 8, 9
   tx.pb.go100%100%0.72%..., 971, 972, 973, 974
   keys.go100%100%0%..., 95, 96, 97, 98
   query.go100%100%0%..., 31, 37, 38, 39
   genesis.go100%100%0%..., 45, 46, 47, 48
   distribution.pb.go100%100%0.61%..., 996, 997, 998, 999
   msg.go100%100%37.41%..., 76, 77, 96, 97
   query.pb.go100%100%0.67%..., 996, 997, 998, 999
x/lsnative/genutil
   genesis.go100%100%0%16, 17, 18, 19, 20
   module.go100%100%0%..., 94, 95, 96, 97
   gentx.go100%100%0%..., 96, 97, 98, 99
   collect.go100%100%0%..., 93, 97, 98, 99
   utils.go100%100%63.64%..., 90, 91, 95, 96
x/lsnative/genutil/client/cli
   init.go100%100%0%..., 96, 97, 98, 99
   collect.go100%100%0%..., 66, 67, 68, 69
   migrate.go100%100%0%..., 94, 97, 98, 99
   validate_genesis.go100%100%0%..., 66, 67, 68, 70
   gentx.go100%100%0%..., 95, 96, 97, 99
x/lsnative/genutil/types
   genesis.pb.go100%100%2.54%..., 68, 69, 70, 99
   types.go100%100%0%..., 42, 43, 44, 45
   genesis_state.go100%100%0%..., 96, 97, 98, 99
x/lsnative/slashing
   abci.go100%100%0%..., 21, 22, 23, 24
   module.go100%100%0%..., 84, 85, 98, 99
x/lsnative/slashing/keeper
   params.go100%100%0%..., 49, 52, 53, 54
   msg_server.go100%100%0%..., 42, 43, 44, 45
   unjail.go100%100%0%..., 48, 49, 52, 53
   querier.go100%100%0%..., 88, 89, 90, 92
   keeper.go100%100%0%..., 93, 94, 95, 96
   hooks.go100%100%0%..., 95, 96, 98, 99
   grpc_query.go100%100%0%..., 70, 71, 72, 73
   signing_info.go100%100%0%..., 96, 97, 98, 99
   infractions.go100%100%0%..., 96, 97, 98, 99
   genesis.go100%100%0%..., 64, 65, 66, 68
   migrations.go100%100%0%..., 17, 20, 21, 22
x/lsnative/slashing/migrations/v043
   store.go100%100%100%
x/lsnative/slashing/simulation
   operations.go100%100%0%..., 96, 97, 98, 99
   genesis.go100%100%0%..., 91, 92, 94, 95
   params.go100%100%0%..., 32, 35, 36, 37
   decoder.go100%100%0%..., 38, 40, 42, 43
x/lsnative/slashing/types
   codec.go100%100%63.16%..., 20, 21, 22, 23
   slashing.pb.go100%100%0.91%..., 966, 967, 969, 99
   genesis.pb.go100%100%1.01%..., 996, 997, 998, 999
   querier.go100%100%0%19, 20, 21
   params.go100%100%0%..., 93, 94, 96, 99
   genesis.go100%100%0%..., 61, 62, 63, 65
   signing_info.go100%100%0%..., 42, 43, 44, 45
   query.pb.go100%100%1.04%..., 994, 995, 998, 999
   tx.pb.go100%100%1.26%..., 96, 97, 98, 99
   query.pb.gw.go100%100%0%..., 95, 97, 98, 99
   msg.go100%100%0%..., 40, 41, 42, 43
   keys.go100%100%0%..., 64, 67, 68, 69
x/lsnative/staking
   abci.go100%100%0%..., 41, 42, 43, 47
   module.go100%100%0%..., 83, 86, 87, 88
   genesis.go100%100%50%..., 67, 68, 75, 76
x/lsnative/staking/client/cli
   utils.go100%100%0%..., 28, 30, 31, 32
   query.go100%100%0%..., 982, 983, 984, 99
   tx.go100%100%12.69%..., 93, 94, 95, 99
   flags.go100%100%47.27%..., 96, 97, 98, 99
x/lsnative/staking/keeper
   invariants.go100%100%0%..., 96, 97, 98, 99
   power_reduction.go100%100%0%..., 14, 15, 16, 9
   delegation.go100%100%0%..., 995, 996, 997, 998
   hooks.go100%100%0%..., 92, 93, 94, 95
   migrations.go100%100%0%..., 25, 28, 29, 30
   test_common.go100%100%0%..., 64, 66, 67, 68
   tokenize_share_record.go100%100%0%..., 95, 96, 98, 99
   msg_server.go100%100%0%..., 95, 96, 98, 99
   querier.go100%100%0%..., 94, 95, 96, 98
   historical_info.go100%100%0%..., 96, 97, 98, 99
   pool.go100%100%0%..., 74, 75, 76, 78
   validator.go100%100%0%..., 93, 94, 96, 97
   grpc_query.go100%100%0%..., 96, 97, 98, 99
   alias_functions.go100%100%0%..., 92, 93, 94, 96
   genesis.go100%100%0%..., 96, 97, 98, 99
   params.go100%100%0%..., 93, 96, 97, 98
   val_state_change.go100%100%0%..., 89, 90, 91, 94
   query_utils.go100%100%0%..., 93, 97, 98, 99
   liquid_stake.go100%100%0%..., 91, 94, 95, 96
   keeper.go100%100%0%..., 94, 95, 96, 97
   slash.go100%100%0%..., 94, 95, 96, 99
x/lsnative/staking/migrations/v043
   store.go100%100%100%
x/lsnative/staking/migrations/v046
   store.go100%100%83.33%29, 30, 31, 44
   json.go100%100%100%
x/lsnative/staking/simulation
   params.go100%100%0%..., 26, 29, 30, 31
   genesis.go100%100%0%..., 96, 97, 98, 99
   operations.go100%100%0%..., 96, 97, 98, 99
   decoder.go100%100%0%..., 58, 59, 60, 61
x/lsnative/staking/types
   authz.pb.go100%100%1.04%..., 96, 97, 98, 99
   codec.go100%100%57.78%..., 50, 51, 52, 53
   validator.go100%100%0%..., 95, 96, 97, 99
   query.pb.go100%100%0.61%..., 985, 99, 998, 999
   genesis.pb.go100%100%0.61%..., 994, 997, 998, 999
   query.pb.gw.go100%100%0%..., 993, 997, 998, 999
   pool.go100%100%0%..., 18, 19, 20, 21
   delegation.go100%100%0%..., 93, 95, 98, 99
   hooks.go100%100%0%..., 93, 95, 98, 99
   genesis.go100%100%0%..., 41, 42, 43, 45
   authz.go100%100%0%..., 95, 96, 98, 99
   params.go100%100%0%..., 95, 96, 97, 98
   msg.go100%100%0%..., 96, 97, 98, 99
   querier.go100%100%0%..., 71, 80, 81, 82
   commission.go100%100%0%..., 95, 96, 98, 99
   tokenize_share_record.go100%100%0%..., 14, 16, 17, 18
   historical_info.go100%100%0%..., 78, 79, 80, 82
   staking.pb.go100%100%0.42%..., 996, 997, 998, 999
   keys.go100%100%0%..., 96, 97, 98, 99
   tx.pb.go100%100%0.59%..., 992, 993, 994, 995
x/oracle/keeper
   genesis.go100%100%93.33%..., 34, 43, 52, 63
   grpc_query.go100%100%15.29%..., 96, 97, 98, 99
   ballot.go100%100%100%
   tally.go100%100%93.55%..., 113, 114, 60, 61
   params.go100%100%68.89%..., 75, 79, 80, 81
   utils.go100%100%77.78%10, 9
   slash.go100%100%97.44%41
   alias_functions.go100%100%100%
   msg_server.go100%100%78.52%..., 85, 86, 89, 90
   keeper.go100%100%93.45%..., 46, 67, 68, 69
   reward.go100%100%91.67%14, 15, 72, 88
x/oracle/types
   hash.go100%100%68.42%..., 65, 66, 68, 69
   tx.pb.go100%100%0.90%..., 993, 994, 996, 999
   params.go100%100%88.59%..., 296, 297, 298, 300
   oracle.pb.go100%100%0.76%..., 995, 996, 997, 998
   query.pb.gw.go100%100%0%..., 95, 97, 98, 99
   msgs.go100%100%73.85%..., 57, 58, 93, 96
   denom.go100%100%100%
   ballot.go100%100%96.61%110, 111, 195, 196
   vote.go100%100%100%
   keys.go100%100%0%..., 58, 59, 60, 61
   genesis.go100%100%66.67%..., 23, 24, 25, 26
   query.pb.go100%100%0.83%..., 969, 97, 98, 99
   codec.go100%100%52.38%..., 45, 46, 47, 48
   genesis.pb.go100%100%0.93%..., 993, 994, 998, 999

Both TotalLiquidShares and TotalValidatorBondShares shouldn't be nil in state, this will be migrated in another place.
@github-actions
Copy link

Coverage after merging b/fix-validator-state into master

7.63%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
simapp
   state.go100%100%0%..., 94, 97, 98, 99
   genesis_account.go100%100%100%
   encoding.go100%100%100%
   test_suite.go100%100%0%..., 52, 53, 54, 56
   config.go100%100%56.10%..., 72, 73, 74, 75
   genesis.go100%100%100%
   app.go100%100%79.43%..., 686, 687, 688, 689
   test_helpers.go100%100%22.38%..., 78, 79, 80, 82
   export.go100%100%15.27%..., 93, 97, 98, 99
   utils.go100%100%20.25%..., 96, 97, 98, 99
simapp/simd/cmd
   genaccounts.go100%100%71.54%..., 95, 96, 97, 98
   root.go100%100%81.94%..., 64, 65, 68, 69
   testnet.go100%100%79.44%..., 408, 409, 62, 63
x/epochs/client/cli
   tx.go100%100%0%..., 22, 23, 24, 25
   query.go100%100%0%..., 95, 96, 97, 98
x/epochs/keeper
   keeper.go100%100%92.86%30
   genesis.go100%100%90.91%14
   grpc_query.go100%100%38.46%..., 51, 53, 54, 55
   hooks.go100%100%100%
   abci.go100%100%100%
   epoch.go100%100%85.71%..., 26, 62, 88, 93
x/epochs/types
   identifier.go100%100%0%..., 25, 7, 8, 9
   genesis.go100%100%59.18%..., 57, 58, 61, 62
   query.pb.go100%100%2.24%..., 96, 97, 98, 99
   hooks.go100%100%100%
   genesis.pb.go100%100%28.80%..., 96, 97, 98, 99
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
   keys.go100%100%0%20, 21, 22
x/halving/simulation
   genesis.go100%100%100%
   params.go100%100%100%
x/halving/types
   query.pb.go100%100%1.91%..., 96, 97, 98, 99
   genesis.go100%100%86.67%25, 26
   query.pb.gw.go100%100%0%..., 95, 96, 97, 98
   genesis.pb.go100%100%2.55%..., 68, 69, 98, 99
   halving.pb.go100%100%2.76%..., 96, 97, 98, 99
   params.go100%100%85.29%23, 24, 25, 43, 44
x/interchainquery
   handler.go100%100%40%17, 18, 19
   genesis.go100%100%54.55%21, 22, 23, 24, 25
   module.go100%100%62.50%..., 87, 90, 91, 92
x/interchainquery/keeper
   msg_server.go100%100%65.08%..., 71, 74, 82, 83
   grpc_query.go100%100%74.07%..., 33, 40, 43, 44
   queries.go100%100%98%67
   keeper.go100%100%67.59%..., 43, 66, 67, 89
   abci.go100%100%92.68%58, 59, 60
x/interchainquery/types
   genesis.go100%100%63.64%15, 16, 17, 18
   messages.pb.gw.go100%100%0%..., 92, 93, 95, 99
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
   codec.go100%100%100%
   genesis.pb.go100%100%0.76%..., 996, 997, 998, 999
   keys.go100%100%0%28, 29, 30
   messages.pb.go100%100%3.58%..., 96, 97, 98, 99
   msgs.go100%100%56%..., 42, 48, 49, 50
   query.pb.go100%100%1.32%..., 996, 997, 998, 999
x/lsnative/distribution
   module.go100%100%0%..., 81, 82, 83, 99
   abci.go100%100%0%..., 32, 33, 36, 37
   handler.go100%100%0%..., 14, 15, 17, 18
x/lsnative/distribution/client/cli
   utils.go100%100%63.64%16, 17, 20, 21
   query.go100%100%0%..., 95, 97, 98, 99
   tx.go100%100%4.01%..., 96, 97, 98, 99
x/lsnative/distribution/client/common
   common.go100%100%15.25%..., 91, 92, 93, 95
x/lsnative/distribution/client/testutil
   withdraw_all_suite.go100%100%100%
   helpers.go100%100%100%
   suite.go100%100%98.68%..., 632, 633, 634, 635
   grpc_query_suite.go100%100%99.76%459
x/lsnative/distribution/keeper
   params.go100%100%0%..., 41, 42, 43, 9
   invariants.go100%100%0%..., 93, 94, 96, 99
   grpc_query.go100%100%0%..., 95, 96, 98, 99
   hooks.go100%100%0%..., 94, 97, 98, 99
   alias_functions.go100%100%0%..., 17, 20, 21, 22
   fee_pool.go100%100%0%..., 26, 27, 29, 30
   genesis.go100%100%0%..., 92, 93, 94, 99
   proposal_handler.go100%100%0%..., 25, 26, 27, 28
   validator.go100%100%0%..., 96, 97, 98, 99
   allocation.go100%100%0%..., 96, 97, 98, 99
   store.go100%100%0%..., 95, 96, 97, 98
   msg_server.go100%100%0%..., 96, 97, 98, 99
   migrations.go100%100%0%..., 17, 20, 21, 22
   querier.go100%100%0%..., 95, 96, 97, 98
   delegation.go100%100%0%..., 89, 90, 91, 92
   keeper.go100%100%0%..., 95, 96, 97, 98
x/lsnative/distribution/migrations/v043
   helpers.go100%100%100%
   store.go100%100%100%
x/lsnative/distribution/simulation
   decoder.go100%100%0%..., 63, 64, 66, 67
   operations.go100%100%0%..., 96, 97, 98, 99
   proposals.go100%100%0%..., 46, 47, 48, 49
   params.go100%100%0%..., 33, 36, 37, 38
   genesis.go100%100%0%..., 80, 81, 83, 84
x/lsnative/distribution/types
   distribution.pb.go100%100%0.61%..., 996, 997, 998, 999
   querier.go100%100%0%..., 84, 92, 93, 94
   genesis.go100%100%0%..., 45, 46, 47, 48
   validator.go100%100%0%..., 44, 45, 46, 47
   genesis.pb.go100%100%0.64%..., 996, 997, 998, 999
   query.go100%100%0%..., 31, 37, 38, 39
   query.pb.go100%100%0.67%..., 996, 997, 998, 999
   params.go100%100%46.88%..., 69, 70, 71, 73
   keys.go100%100%0%..., 95, 96, 97, 98
   tx.pb.go100%100%0.72%..., 971, 972, 973, 974
   proposal.go100%100%12.12%..., 67, 68, 69, 70
   delegator.go100%100%0%..., 13, 14, 8, 9
   msg.go100%100%37.41%..., 76, 77, 96, 97
   fee_pool.go100%100%0%..., 19, 20, 21, 23
   query.pb.gw.go100%100%0%..., 994, 995, 996, 998
   codec.go100%100%52.78%..., 40, 41, 42, 43
x/lsnative/genutil
   utils.go100%100%63.64%..., 90, 91, 95, 96
   gentx.go100%100%0%..., 96, 97, 98, 99
   collect.go100%100%0%..., 93, 97, 98, 99
   module.go100%100%0%..., 94, 95, 96, 97
   genesis.go100%100%0%16, 17, 18, 19, 20
x/lsnative/genutil/client/cli
   gentx.go100%100%0%..., 95, 96, 97, 99
   collect.go100%100%0%..., 66, 67, 68, 69
   migrate.go100%100%0%..., 94, 97, 98, 99
   init.go100%100%0%..., 96, 97, 98, 99
   validate_genesis.go100%100%0%..., 66, 67, 68, 70
x/lsnative/genutil/types
   types.go100%100%0%..., 42, 43, 44, 45
   genesis_state.go100%100%0%..., 96, 97, 98, 99
   genesis.pb.go100%100%2.54%..., 68, 69, 70, 99
x/lsnative/slashing
   abci.go100%100%0%..., 21, 22, 23, 24
   module.go100%100%0%..., 84, 85, 98, 99
x/lsnative/slashing/keeper
   hooks.go100%100%0%..., 95, 96, 98, 99
   grpc_query.go100%100%0%..., 70, 71, 72, 73
   migrations.go100%100%0%..., 17, 20, 21, 22
   msg_server.go100%100%0%..., 42, 43, 44, 45
   genesis.go100%100%0%..., 64, 65, 66, 68
   params.go100%100%0%..., 49, 52, 53, 54
   keeper.go100%100%0%..., 93, 94, 95, 96
   infractions.go100%100%0%..., 96, 97, 98, 99
   signing_info.go100%100%0%..., 96, 97, 98, 99
   querier.go100%100%0%..., 88, 89, 90, 92
   unjail.go100%100%0%..., 48, 49, 52, 53
x/lsnative/slashing/migrations/v043
   store.go100%100%100%
x/lsnative/slashing/simulation
   genesis.go100%100%0%..., 91, 92, 94, 95
   operations.go100%100%0%..., 96, 97, 98, 99
   params.go100%100%0%..., 32, 35, 36, 37
   decoder.go100%100%0%..., 38, 40, 42, 43
x/lsnative/slashing/types
   genesis.pb.go100%100%1.01%..., 996, 997, 998, 999
   msg.go100%100%0%..., 40, 41, 42, 43
   params.go100%100%0%..., 93, 94, 96, 99
   slashing.pb.go100%100%0.91%..., 966, 967, 969, 99
   signing_info.go100%100%0%..., 42, 43, 44, 45
   querier.go100%100%0%19, 20, 21
   keys.go100%100%0%..., 64, 67, 68, 69
   genesis.go100%100%0%..., 61, 62, 63, 65
   tx.pb.go100%100%1.26%..., 96, 97, 98, 99
   query.pb.gw.go100%100%0%..., 95, 97, 98, 99
   query.pb.go100%100%1.04%..., 994, 995, 998, 999
   codec.go100%100%63.16%..., 20, 21, 22, 23
x/lsnative/staking
   abci.go100%100%0%..., 24, 25, 26, 27
   module.go100%100%0%..., 83, 86, 87, 88
   genesis.go100%100%50%..., 67, 68, 75, 76
x/lsnative/staking/client/cli
   flags.go100%100%47.27%..., 96, 97, 98, 99
   utils.go100%100%0%..., 28, 30, 31, 32
   tx.go100%100%12.69%..., 93, 94, 95, 99
   query.go100%100%0%..., 982, 983, 984, 99
x/lsnative/staking/keeper
   historical_info.go100%100%0%..., 96, 97, 98, 99
   slash.go100%100%0%..., 94, 95, 96, 99
   tokenize_share_record.go100%100%0%..., 95, 96, 98, 99
   migrations.go100%100%0%..., 25, 28, 29, 30
   liquid_stake.go100%100%0%..., 91, 94, 95, 96
   params.go100%100%0%..., 93, 96, 97, 98
   msg_server.go100%100%0%..., 95, 96, 98, 99
   querier.go100%100%0%..., 94, 95, 96, 98
   invariants.go100%100%0%..., 96, 97, 98, 99
   keeper.go100%100%0%..., 94, 95, 96, 97
   delegation.go100%100%0%..., 995, 996, 997, 998
   alias_functions.go100%100%0%..., 92, 93, 94, 96
   val_state_change.go100%100%0%..., 89, 90, 91, 94
   hooks.go100%100%0%..., 92, 93, 94, 95
   grpc_query.go100%100%0%..., 96, 97, 98, 99
   test_common.go100%100%0%..., 64, 66, 67, 68
   genesis.go100%100%0%..., 96, 97, 98, 99
   power_reduction.go100%100%0%..., 14, 15, 16, 9
   pool.go100%100%0%..., 74, 75, 76, 78
   query_utils.go100%100%0%..., 93, 97, 98, 99
   validator.go100%100%0%..., 93, 94, 96, 97
x/lsnative/staking/migrations/v043
   store.go100%100%100%
x/lsnative/staking/migrations/v046
   store.go100%100%83.33%29, 30, 31, 44
   json.go100%100%100%
x/lsnative/staking/simulation
   operations.go100%100%0%..., 96, 97, 98, 99
   decoder.go100%100%0%..., 58, 59, 60, 61
   genesis.go100%100%0%..., 96, 97, 98, 99
   params.go100%100%0%..., 26, 29, 30, 31
x/lsnative/staking/types
   keys.go100%100%0%..., 96, 97, 98, 99
   authz.go100%100%0%..., 95, 96, 98, 99
   params.go100%100%0%..., 95, 96, 97, 98
   codec.go100%100%57.78%..., 50, 51, 52, 53
   pool.go100%100%0%..., 18, 19, 20, 21
   staking.pb.go100%100%0.42%..., 996, 997, 998, 999
   authz.pb.go100%100%1.04%..., 96, 97, 98, 99
   genesis.pb.go100%100%0.61%..., 994, 997, 998, 999
   tokenize_share_record.go100%100%0%..., 14, 16, 17, 18
   historical_info.go100%100%0%..., 78, 79, 80, 82
   querier.go100%100%0%..., 71, 80, 81, 82
   validator.go100%100%0%..., 95, 96, 97, 99
   query.pb.gw.go100%100%0%..., 993, 997, 998, 999
   hooks.go100%100%0%..., 93, 95, 98, 99
   delegation.go100%100%0%..., 93, 95, 98, 99
   tx.pb.go100%100%0.59%..., 992, 993, 994, 995
   genesis.go100%100%0%..., 41, 42, 43, 45
   msg.go100%100%0%..., 96, 97, 98, 99
   query.pb.go100%100%0.61%..., 985, 99, 998, 999
   commission.go100%100%0%..., 95, 96, 98, 99
x/oracle/keeper
   genesis.go100%100%93.33%..., 34, 43, 52, 63
   params.go100%100%68.89%..., 75, 79, 80, 81
   keeper.go100%100%93.45%..., 46, 67, 68, 69
   alias_functions.go100%100%100%
   utils.go100%100%77.78%10, 9
   ballot.go100%100%100%
   slash.go100%100%97.44%41
   grpc_query.go100%100%15.29%..., 96, 97, 98, 99
   reward.go100%100%91.67%14, 15, 72, 88
   msg_server.go100%100%78.52%..., 85, 86, 89, 90
   tally.go100%100%93.55%..., 113, 114, 60, 61
x/oracle/types
   query.pb.gw.go100%100%0%..., 95, 97, 98, 99
   vote.go100%100%100%
   msgs.go100%100%73.85%..., 57, 58, 93, 96
   denom.go100%100%100%
   keys.go100%100%0%..., 58, 59, 60, 61
   hash.go100%100%68.42%..., 65, 66, 68, 69
   oracle.pb.go100%100%0.76%..., 995, 996, 997, 998
   codec.go100%100%52.38%..., 45, 46, 47, 48
   ballot.go100%100%96.61%110, 111, 195, 196
   genesis.pb.go100%100%0.93%..., 993, 994, 998, 999
   params.go100%100%88.59%..., 296, 297, 298, 300
   genesis.go100%100%66.67%..., 23, 24, 25, 26
   query.pb.go100%100%0.83%..., 969, 97, 98, 99
   tx.pb.go100%100%0.90%..., 993, 994, 996, 999

@xlab xlab merged commit 7bc1f2b into master Apr 25, 2023
3 checks passed
@xlab xlab deleted the b/fix-validator-state branch April 25, 2023 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants