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

abci: remove unused fields from CheckTXResponse (part 1) #8605

Merged
merged 12 commits into from
May 25, 2022

Conversation

jmalicevic
Copy link
Contributor

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 to CheckTx.

proto/tendermint/abci/types.proto Outdated Show resolved Hide resolved
Copy link
Contributor

@sergio-mena sergio-mena left a 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

proto/tendermint/abci/types.proto Outdated Show resolved Hide resolved
@tychoish
Copy link
Contributor

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"

@jmalicevic jmalicevic changed the title Jasmina/8543-abci-strip-down-checktxresponse-p1 Jasmina/abci:strip-down-checktxresponse-p1 May 25, 2022
@jmalicevic jmalicevic changed the title Jasmina/abci:strip-down-checktxresponse-p1 abci:strip-down-checktxresponse-p1 May 25, 2022
@jmalicevic
Copy link
Contributor Author

  • either removed the fileds also from the ABCI++ spec ("methods" file)

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.

@tychoish tychoish changed the title abci:strip-down-checktxresponse-p1 abci: remove unused fields from CheckTXResponse (part 1) May 25, 2022
@sergio-mena
Copy link
Contributor

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

Comment on lines 88 to 93
return &coretypes.ResultBroadcastTx{
Code: c.Code,
Data: c.Data,
Log: c.Log,
Codespace: c.Codespace,
Hash: tx.Hash(),
}, nil
Copy link
Contributor

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?

Copy link
Contributor Author

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

abci/types/types_test.go Outdated Show resolved Hide resolved
Comment on lines 69 to 75
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 {
Copy link
Contributor

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?

Copy link
Contributor

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.

@jmalicevic jmalicevic merged commit 4c857a7 into master May 25, 2022
@jmalicevic jmalicevic deleted the jasmina/8543-abci-strip-down-checktxresponse branch May 25, 2022 21:06
@jmalicevic jmalicevic restored the jasmina/8543-abci-strip-down-checktxresponse branch May 25, 2022 21:06
@jmalicevic jmalicevic deleted the jasmina/8543-abci-strip-down-checktxresponse branch May 26, 2022 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ABCI: strip down CheckTxResponse to necessary fields
5 participants