-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: add abci wrapper #16199
refactor: add abci wrapper #16199
Conversation
} | ||
|
||
bApp.InitChain(context.Background(), &cmtabcitypes.RequestInitChain{ChainId: appName}) | ||
bApp.Commit(context.TODO(), &cmtabcitypes.RequestCommit{}) | ||
bApp.Commit() |
Check warning
Code scanning / gosec
Errors unhandled.
@@ -143,7 +143,7 @@ | |||
require.False(t, finalizeSuccess) | |||
} | |||
|
|||
app.Commit(context.TODO(), &types2.RequestCommit{}) | |||
app.Commit() |
Check warning
Code scanning / gosec
Errors unhandled.
Great question and one primarily for the CometBFT team. I don't see us needing the use of Go A good task to have is look at the |
Right, I'll re-add it in |
@julienrbrt any updates from CometBFT exploration? |
Yes, see on Slack. To sum-up for another reader, they have no plan to use it soon. |
I see. Yes, we should keep Context for |
my thinking is we will break this api again in the future with runtime modules, so doing one break with contexts and our own types makes sense. Id be open to merging this for now to reduce breakage for this release |
82472c7
to
f624f05
Compare
Description
Personally, as I was onboarding on the branch this PR is targeting, I was confused when updating tests and wrongly passing context that were actually going to be discarded.
This is a proposal of simplifying it. I have not thought about the possible implications, but I'd like early feedback.
What is the context supposed to be used for actually?
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...
!
to 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...
!
in the type prefix if API or client breaking change