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

refactor(server/v2): Update prepare & process proposal #21237

Merged
merged 11 commits into from
Sep 4, 2024

Conversation

hieuvubk
Copy link
Contributor

@hieuvubk hieuvubk commented Aug 9, 2024

Description

Closes: #XXXX

  • handler stf.ValidateTx result err
  • fix types
  • check nil handler
  • move decode txs to proposal handler

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, you can find examples of the prefixes below:
  • 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.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

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

Summary by CodeRabbit

  • New Features

    • Enhanced error handling in transaction validation to provide clearer feedback on validation outcomes.
    • Improved robustness in consensus methods with new checks for proposal handlers and dynamic transaction decoding.
    • Updated handling of consensus parameters for better clarity and correctness through new type management.
  • Bug Fixes

    • Addressed potential issues by validating states before processing proposals, ensuring invalid proposals are not processed.

@hieuvubk hieuvubk requested a review from a team as a code owner August 9, 2024 09:33
Copy link
Contributor

coderabbitai bot commented Aug 9, 2024

Warning

Rate limit exceeded

@hieuvubk has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 0 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 5262b84 and 1075d9d.

Walkthrough

Walkthrough

The recent updates enhance error handling and robustness across several components, particularly in transaction validation, proposal preparation, and processing. Key modifications include checks for nil handlers, validation of proposal heights, and improved memory efficiency in transaction decoding through dynamic slicing. Additionally, code clarity and correctness are improved by replacing outdated references, ensuring that invalid states are caught early and providing clearer feedback during operations.

Changes

File Change Summary
server/v2/appmanager/appmanager.go Altered ValidateTx function in AppManager to explicitly return errors from validation, enhancing feedback and robustness.
server/v2/cometbft/abci.go, server/v2/cometbft/handlers/defaults.go Updated PrepareProposal and ProcessProposal methods to include checks for nil handlers and validate proposal heights. Changed transaction decoding to use dynamic slices for improved memory efficiency. Replaced consensusv1 references with consensustypes in DefaultProposalHandler.
server/v2/cometbft/handlers/handlers.go Updated signatures for PrepareHandler and ProcessHandler to accept transaction.Codec[T] and specific ABCI request types, enhancing functionality and clarity in transaction processing.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1862e38 and 532edc8.

Files selected for processing (3)
  • server/v2/appmanager/appmanager.go (1 hunks)
  • server/v2/cometbft/abci.go (3 hunks)
  • server/v2/cometbft/handlers/defaults.go (3 hunks)
Additional context used
Path-based instructions (3)
server/v2/cometbft/handlers/defaults.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

server/v2/appmanager/appmanager.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

server/v2/cometbft/abci.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (10)
server/v2/cometbft/handlers/defaults.go (4)

44-44: Ensure correct error handling for consensus parameter queries.

The use of consensustypes.QueryParamsRequest aligns with the updated consensus types. Ensure that any potential errors from the query are properly logged or handled to aid in debugging.


118-118: Ensure correct error handling for consensus parameter queries.

The use of consensustypes.QueryParamsRequest aligns with the updated consensus types. Ensure that any potential errors from the query are properly logged or handled to aid in debugging.


49-51: Verify type assertion for consensus parameters response.

The type assertion for consensustypes.QueryParamsResponse should be validated thoroughly to avoid runtime panics. Consider logging the error details for better traceability.

Verification successful

Consider adding logging for type assertion failures.

The type assertion for consensustypes.QueryParamsResponse is correctly handled to avoid runtime panics by returning an error. However, adding logging for these errors could improve traceability and aid in debugging. Consider incorporating logging to capture these error details.

  • File: server/v2/cometbft/handlers/defaults.go
  • Lines: 49-51
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `consensustypes.QueryParamsResponse` in the codebase.

# Test: Search for the usage of `consensustypes.QueryParamsResponse`. Expect: Proper error handling around its usage.
rg --type go 'consensustypes.QueryParamsResponse'

Length of output: 1148


123-125: Verify type assertion for consensus parameters response.

The type assertion for consensustypes.QueryParamsResponse should be validated thoroughly to avoid runtime panics. Consider logging the error details for better traceability.

Verification successful

Type assertion for consensus parameters response is properly handled.

The type assertion for consensustypes.QueryParamsResponse in server/v2/cometbft/handlers/defaults.go is already accompanied by error handling that logs an appropriate error message if the assertion fails. This should prevent runtime panics and provide necessary traceability. No further changes are needed.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `consensustypes.QueryParamsResponse` in the codebase.

# Test: Search for the usage of `consensustypes.QueryParamsResponse`. Expect: Proper error handling around its usage.
rg --type go 'consensustypes.QueryParamsResponse'

Length of output: 1148

server/v2/appmanager/appmanager.go (1)

131-132: Improved error handling in ValidateTx.

The change to return res.Error explicitly enhances the robustness of the transaction validation logic by providing clearer feedback on validation outcomes.

server/v2/cometbft/abci.go (5)

318-320: Check for nil prepareProposalHandler.

The addition of a nil check for prepareProposalHandler prevents the method from proceeding with an invalid state, enhancing robustness.


Line range hint 322-332:
Use dynamic slicing for decodedTxs.

Replacing fixed-length slice initialization with appending to a dynamically sized slice improves memory efficiency and flexibility in handling transactions.


363-365: Check for valid proposal height.

The check for req.Height being greater than or equal to 1 prevents processing proposals with invalid heights, enhancing robustness.


367-369: Check for nil processProposalHandler.

The addition of a nil check for processProposalHandler prevents the method from proceeding with an invalid state, enhancing robustness.


371-371: Use dynamic slicing for decodedTxs.

Replacing fixed-length slice initialization with appending to a dynamically sized slice improves memory efficiency and flexibility in handling transactions.

@julienrbrt julienrbrt added the backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release label Aug 9, 2024
julienrbrt
julienrbrt previously approved these changes Aug 9, 2024
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

return nil, errors.New("no prepare proposal function was set")
}

var decodedTxs []T
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should preallocate here as we know the length

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought the same but we skip undecodable txs, so the index would then be nil

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only case we can't decode is if it's a vote exetension or some other data type of the state machine right?

Copy link
Member

@julienrbrt julienrbrt Aug 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be yeah

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove the decoding part and make it part of the handler. it wont work this way, and requiring users to modify the decoder feels weird

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to move it to handler.

@@ -325,7 +329,7 @@ func (c *Consensus[T]) PrepareProposal(
continue
}

decodedTxs[i] = decTx
decodedTxs = append(decodedTxs, decTx)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont believe this is correct. in the case of vote extensions we will not be able to decode the txs meaning we will always remove it from the block. This should happen in the handler instead of here. This is how its handled in abci.

@hieuvubk
Copy link
Contributor Author

Move the tx decode part to the handler.
Also how about request have a bad encoding tx? Keep skipping like current or reject all (like baseapp).
And how we handle ProposalTxVerifier for prepare & precess proposal

ProposalTxVerifier interface {
   PrepareProposalVerifyTx(tx sdk.Tx) ([]byte, error)
   ProcessProposalVerifyTx(txBz []byte) (sdk.Tx, error)
   TxDecode(txBz []byte) (sdk.Tx, error)
   TxEncode(tx sdk.Tx) ([]byte, error)
}

cc @julienrbrt @tac0turtle

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
server/v2/cometbft/handlers/defaults.go (1)

149-162: Consider handling decoding errors in decodeTxs.

The decodeTxs function currently continues on decoding errors, which may lead to silent failures. Consider logging or handling these errors more explicitly.

		decTx, err := codec.Decode(tx)
		if err != nil {
			// Log or handle the decoding error
			continue
		}
Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 532edc8 and c734809.

Files selected for processing (3)
  • server/v2/cometbft/abci.go (4 hunks)
  • server/v2/cometbft/handlers/defaults.go (6 hunks)
  • server/v2/cometbft/handlers/handlers.go (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • server/v2/cometbft/abci.go
Additional context used
Path-based instructions (2)
server/v2/cometbft/handlers/handlers.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

server/v2/cometbft/handlers/defaults.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (5)
server/v2/cometbft/handlers/handlers.go (2)

15-15: Function signature update approved.

The PrepareHandler function signature changes improve type safety and align with the ABCI protocol.


19-19: Function signature update approved.

The ProcessHandler function signature changes improve type safety and align with the ABCI protocol.

server/v2/cometbft/handlers/defaults.go (3)

14-14: Import statement update approved.

The import of consensustypes aligns with the updated handling of consensus parameters.


101-116: Update to consensus parameter handling approved.

The use of consensustypes.QueryParamsRequest and consensustypes.QueryParamsResponse is correctly implemented in ProcessHandler.

Ensure that the new types are correctly used throughout the codebase.


35-45: Update to consensus parameter handling approved.

The use of consensustypes.QueryParamsRequest and consensustypes.QueryParamsResponse is correctly implemented.

Ensure that the new types are correctly used throughout the codebase.

Verification successful

Consistent Usage of Consensus Types Verified

The consensustypes.QueryParamsRequest and consensustypes.QueryParamsResponse are used consistently across the codebase, including in test files and expected keeper interfaces. This suggests that the integration is thorough and correctly implemented.

  • Files Verified:
    • x/staking/keeper/keeper_test.go
    • x/staking/types/expected_keepers.go
    • x/auth/ante/testutil_test.go
    • x/auth/ante/expected_keepers.go
    • server/v2/cometbft/handlers/defaults.go
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `consensustypes.QueryParamsRequest` and `consensustypes.QueryParamsResponse`.

# Test: Search for the usage of the new types. Expect: Consistent usage across the codebase.
rg --type go 'consensustypes.QueryParams(Request|Response)'

Length of output: 1380

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c734809 and 53fafa8.

Files selected for processing (2)
  • server/v2/appmanager/appmanager.go (1 hunks)
  • server/v2/cometbft/abci.go (4 hunks)
Files skipped from review as they are similar to previous changes (1)
  • server/v2/cometbft/abci.go
Additional context used
Path-based instructions (1)
server/v2/appmanager/appmanager.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (1)
server/v2/appmanager/appmanager.go (1)

129-130: Improved error handling in ValidateTx.

The change to capture and return the error from a.stf.ValidateTx enhances the robustness of the transaction validation process by ensuring errors are not silently ignored.

To ensure the changes work as intended, verify the usage of ValidateTx in the codebase to confirm that the error handling is correctly propagated.

Verification successful

Error handling for ValidateTx is correctly implemented across the codebase.

The review of the ValidateTx function's usage confirms that errors are appropriately handled in all instances where this function is called. The changes made in server/v2/appmanager/appmanager.go align with the overall error handling strategy.

  • Files with proper error handling:
    • x/auth/module.go
    • x/auth/ante/basic.go
    • x/auth/ante/sigverify.go
    • server/v2/cometbft/abci.go
    • server/v2/cometbft/handlers/defaults.go
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `ValidateTx` to ensure proper error handling.

# Test: Search for the function usage. Expect: Proper handling of the returned error.
rg --type go -A 5 $'ValidateTx'

Length of output: 16376

@julienrbrt julienrbrt dismissed their stale review August 13, 2024 09:58

need to re-review

@julienrbrt julienrbrt self-requested a review August 13, 2024 09:58
@tac0turtle
Copy link
Member

ut request have a bad encoding tx? Keep skipping like current or reject all (like baseapp).
And how we handle ProposalTxVerifier for prepare & precess proposal

lets recreate the same logic for simplicity for the defaults

@hieuvubk
Copy link
Contributor Author

And how we handle ProposalTxVerifier for prepare & precess proposal

Nvm my bad, it was replaced by app.ValidateTx()

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Outside diff range, codebase verification and nitpick comments (4)
server/v2/cometbft/handlers/defaults.go (4)

38-45: Enhance error handling with more context.

The error handling for the query response type assertion could include more context to aid debugging.

- return nil, fmt.Errorf("unexpected consensus params response type; expected: %T, got: %T", &consensustypes.QueryParamsResponse{}, res)
+ return nil, fmt.Errorf("unexpected consensus params response type in PrepareHandler; expected: %T, got: %T", &consensustypes.QueryParamsResponse{}, res)

109-116: Enhance error handling with more context.

Similar to PrepareHandler, the error handling for the query response type assertion could include more context.

- return fmt.Errorf("unexpected consensus params response type; expected: %T, got: %T", &consensustypes.QueryParamsResponse{}, res)
+ return fmt.Errorf("unexpected consensus params response type in ProcessHandler; expected: %T, got: %T", &consensustypes.QueryParamsResponse{}, res)

170-171: Inconsistent Error Handling for decodeTxs

The decodeTxs function has inconsistent error handling across its implementations. In abci.go, it returns an error and handles it, while in handlers/defaults.go, it does not return an error. This discrepancy could lead to unhandled errors in transaction decoding, particularly in the NoOpPrepareProposal function.

  • Review the decodeTxs function in handlers/defaults.go to ensure it aligns with the error handling approach in abci.go.
  • Consider updating the NoOpPrepareProposal function to handle potential errors from decodeTxs.
Analysis chain

Verify consistency in error handling for decodeTxs.

Ensure that any changes to error handling in decodeTxs are consistently applied across all usages, including in NoOpPrepareProposal.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify consistency in error handling for `decodeTxs`.

# Test: Search for all usages of `decodeTxs` to ensure consistent error handling.
rg --type go 'decodeTxs' -A 3

Length of output: 1796


52-52: Consider implementing error handling for decodeTxs function.

The decodeTxs function is used in server/v2/cometbft/handlers/defaults.go, but its potential errors are not currently handled or logged. It is advisable to handle these errors for improved traceability and robustness.

  • server/v2/cometbft/handlers/defaults.go: Ensure errors from decodeTxs are properly handled or logged.
Analysis chain

Consider error handling in transaction decoding.

The decodeTxs function currently ignores decoding errors. Consider handling these errors or logging them for better traceability.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if decoding errors are logged or handled in the codebase.

# Test: Search for any logging or error handling related to decodeTxs function.
rg --type go 'decodeTxs' -A 5 | rg 'log|error'

Length of output: 166


Script:

#!/bin/bash
# Search for the usage of decodeTxs in the specified file and check if the error is handled or logged.
rg 'decodeTxs' server/v2/cometbft/handlers/defaults.go -A 5

Length of output: 975

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 53fafa8 and 5262b84.

Files selected for processing (1)
  • server/v2/cometbft/handlers/defaults.go (6 hunks)
Additional context used
Path-based instructions (1)
server/v2/cometbft/handlers/defaults.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (2)
server/v2/cometbft/handlers/defaults.go (2)

124-124: Consider error handling in transaction decoding.

The decodeTxs function is used here as well, and similar considerations for error handling or logging apply.


178-179: LGTM!

The NoOpProcessProposal function is correctly implemented as a no-op handler.

Comment on lines 149 to 165
// decodeTxs decodes the txs bytes into a decoded txs
// If there a fail decoding tx, remove from the list
// TODO: should return an err here?
func decodeTxs[T transaction.Tx](codec transaction.Codec[T], txsBz [][]byte) []T {
var txs []T
for _, tx := range txsBz {
decTx, err := codec.Decode(tx)
if err != nil {
// TODO: vote extension meta data as a custom type to avoid possibly accepting invalid txs
// continue even if tx decoding fails
continue
}

txs = append(txs, decTx)
}
return txs
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve error handling in decodeTxs.

The function skips transactions that fail to decode without reporting errors. Consider returning an error or logging the failure to improve traceability. The TODO comment also suggests this improvement.

func decodeTxs[T transaction.Tx](codec transaction.Codec[T], txsBz [][]byte) ([]T, error) {
	var txs []T
	var decodeErrors []error
	for _, tx := range txsBz {
		decTx, err := codec.Decode(tx)
		if err != nil {
			decodeErrors = append(decodeErrors, err)
			continue
		}
		txs = append(txs, decTx)
	}
	if len(decodeErrors) > 0 {
		return txs, fmt.Errorf("failed to decode some transactions: %v", decodeErrors)
	}
	return txs, nil
}

}

decodedTxs[i] = decTx
if c.prepareProposalHandler == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this fail at app build time?

Copy link
Member

@julienrbrt julienrbrt Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you don't pass anything to the comet server, we use the default options (no op handlers).
so to get this you would have to purposely pass nil. as we don't want to make those mandatory, making it fail at compile time isn't best.

for _, tx := range txsBz {
decTx, err := codec.Decode(tx)
if err != nil {
// TODO: vote extension meta data as a custom type to avoid possibly accepting invalid txs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it's important to understand what to do here, is it fine to continue with txs if they fail decoding?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes agree, I think we should decide about it. Like v1 we reject all if have a tx decoded fail.

@julienrbrt julienrbrt added this pull request to the merge queue Sep 4, 2024
Merged via the queue into main with commit 95b8092 Sep 4, 2024
73 checks passed
@julienrbrt julienrbrt deleted the hieu/refactor-proposal branch September 4, 2024 08:03
mergify bot pushed a commit that referenced this pull request Sep 4, 2024
(cherry picked from commit 95b8092)

# Conflicts:
#	server/v2/appmanager/appmanager.go
julienrbrt added a commit that referenced this pull request Sep 4, 2024
…) (#21536)

Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release C:server/v2 appmanager C:server/v2 cometbft C:server/v2 Issues related to server/v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants