-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: server v2 #19413
Conversation
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>
Co-authored-by: Marko <[email protected]> Co-authored-by: testinginprod <[email protected]> Co-authored-by: testinginprod <[email protected]> Co-authored-by: Marko <[email protected]>
// 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
} | ||
|
||
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
|
||
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
Co-authored-by: Julien Robert <[email protected]>
Co-authored-by: testinginprod <[email protected]> Co-authored-by: marbar3778 <[email protected]> Co-authored-by: Hieu Vu <[email protected]>
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
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
// 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
closing this for now since we are starting to upstream things |
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...
!
in the type prefix if API or client breaking changeCHANGELOG.md
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...