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

feat: server v2 #19413

Closed
wants to merge 97 commits into from
Closed

feat: server v2 #19413

wants to merge 97 commits into from

Conversation

tac0turtle
Copy link
Member

Description

This is a draft pr of server v2 into main, it is used to track changes occurring on main


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

tac0turtle and others added 30 commits January 15, 2024 16:53
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: unknown unknown <unknown@unknown>
…ours (#18845)

Co-authored-by: Marko <[email protected]>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: unknown unknown <unknown@unknown>
@github-actions github-actions bot added C:Confix Issues and PR related to Confix C:Hubl Tool: Hubl C:x/epochs labels Apr 9, 2024
@github-actions github-actions bot removed C:Simulations C:x/crisis C:x/genutil genutil module issues C:Cosmovisor Issues and PR related to Cosmovisor C:orm Type: ADR C:collections C:Confix Issues and PR related to Confix C:Hubl Tool: Hubl labels Apr 9, 2024
Co-authored-by: Marko <[email protected]>
Co-authored-by: testinginprod <[email protected]>
Co-authored-by: testinginprod <[email protected]>
Co-authored-by: Marko <[email protected]>
@github-actions github-actions bot added the C:x/genutil genutil module issues label Apr 11, 2024
// GetConsensusParams makes a query to the consensus module in order to get the latest consensus
// parameters from committed state
func (c *Consensus[T]) GetConsensusParams(ctx context.Context) (*cmtproto.ConsensusParams, error) {
cs := &cmtproto.ConsensusParams{}

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

This definition of cs is never used.
}

func (s *MockStore) Query(storeKey []byte, version uint64, key []byte, prove bool) (storev2.QueryResult, error) {
state, err := s.Storage.StateAt(version)

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

This definition of err is never used.

func (s *MockStore) Query(storeKey []byte, version uint64, key []byte, prove bool) (storev2.QueryResult, error) {
state, err := s.Storage.StateAt(version)
reader, err := state.GetReader(storeKey)

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

This definition of err is never used.
evidence[i] = &consensus.Evidence{
EvidenceType: consensus.MisbehaviorType(e.Type),
Height: e.Height,
Time: &e.Time,

Check failure

Code scanning / gosec

Implicit memory aliasing in for loop. Error

Implicit memory aliasing in for loop.
return fmt.Errorf("failed to unmarshal %s genesis state: %w", moduleName, err)
}
for _, jsonTx := range genesisState.GenTxs {
txHandler(jsonTx)

Check warning

Code scanning / gosec

Errors unhandled. Warning

Errors unhandled.
// parameters from committed state
func (c *Consensus[T]) GetConsensusParams(ctx context.Context) (*cmtproto.ConsensusParams, error) {
cs := &cmtproto.ConsensusParams{}
latestVersion, err := c.store.GetLatestVersion()

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

This definition of err is never used.
@tac0turtle
Copy link
Member Author

closing this for now since we are starting to upstream things

@tac0turtle tac0turtle closed this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment