-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
abci: remove unused fields from CheckTXResponse (part 1) #8605
abci: remove unused fields from CheckTXResponse (part 1) #8605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Jasmina.
May I ask you:
- either removed the fileds also from the ABCI++ spec ("methods" file)
- or add an issue so we don't forget to do it
can the title of this PR (and thus the commit once squashed) follow our convention (e.g. something like "abci: remove unused info/error fields" |
I will do it now, I'll try to check the docs n other places as well. There are a few places where Info, Log and Event are mentioned in relation to ResponseCheckTx. |
Thanks a lot, I appreciate it |
return &coretypes.ResultBroadcastTx{ | ||
Code: c.Code, | ||
Data: c.Data, | ||
Log: c.Log, | ||
Codespace: c.Codespace, | ||
Hash: tx.Hash(), | ||
}, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually remove Log
from ResultBroadcastTx
somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just removed it. Can you verify that this (ResultBroadcastTx
) refers only to CheckTx
result
light/provider/mocks/provider.go
Outdated
type NewProviderT interface { | ||
mock.TestingT | ||
Cleanup(func()) | ||
} | ||
|
||
// NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | ||
func NewProvider(t NewProviderT) *Provider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with the new mock types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was because of the recent Dependabot update to Mockery. It should go away once the PR is rebased.
This PR removes the following fields from
ResponseCheckTx
:Info
Log
GasUsed
Events
.A separate PR will futher remove
MempoolError
as this field is set by Tendermint and should be separated from the application response toCheckTx
.