Skip to content

types: remove panic from block methods - #7501

Merged
tychoish merged 7 commits into
tendermint:masterfrom
tychoish:no-panic-types-block
Jan 3, 2022
Merged

tychoish merged 7 commits into
tendermint:masterfrom
tychoish:no-panic-types-block

Conversation

@tychoish

@tychoish tychoish commented Jan 3, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@creachadair creachadair left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A few suggestions, but overall LGTM. Linters gonna lint.

Comment thread internal/store/store_test.go Resolved
Comment thread internal/blocksync/reactor.go Resolved
Comment thread internal/consensus/state.go Resolved
Comment thread internal/consensus/state.go Resolved
Comment thread internal/state/test/factory/block.go Resolved
Comment thread internal/state/test/factory/block.go Resolved
@tychoish
tychoish merged commit 430817d into tendermint:master Jan 3, 2022
sergio-mena added a commit that referenced this pull request Aug 3, 2022
* ----start----

* [PARTIAL cherry-pick] ABCI Vote Extension 2 (#6885)

* Cherry-picked #6567: state/types: refactor makeBlock, makeBlocks and makeTxs (#6567)

* [Cherrypicked] types: remove panic from block methods (#7501)

* [cherrypicked] abci++: synchronize PrepareProposal with the newest version of the spec (#8094)

This change implements the logic for the PrepareProposal ABCI++ method call. The main logic for creating and issuing the PrepareProposal request lives in execution.go and is tested in a set of new tests in execution_test.go. This change also updates the mempool mock to use a mockery generated version and removes much of the plumbing for the no longer used ABCIResponses.

* make proto-gen

* Backported EvidenceList's method ToABCI from #7961

* make build

* Fix mockery for Mempool

* mockery

* Backported abci Application mocks from #7961

* mockery2

* Fixed new PrepareProposal test cases in state/execution_test.go

* Fixed returned errors in consensus/state.go

* lint

* Addressed @cmwaters' comment

Co-authored-by: mconcat <[email protected]>
Co-authored-by: JayT106 <[email protected]>
Co-authored-by: Sam Kleinman <[email protected]>
Co-authored-by: William Banfield <[email protected]>
samricotta pushed a commit that referenced this pull request Aug 16, 2022
* ----start----

* [PARTIAL cherry-pick] ABCI Vote Extension 2 (#6885)

* Cherry-picked #6567: state/types: refactor makeBlock, makeBlocks and makeTxs (#6567)

* [Cherrypicked] types: remove panic from block methods (#7501)

* [cherrypicked] abci++: synchronize PrepareProposal with the newest version of the spec (#8094)

This change implements the logic for the PrepareProposal ABCI++ method call. The main logic for creating and issuing the PrepareProposal request lives in execution.go and is tested in a set of new tests in execution_test.go. This change also updates the mempool mock to use a mockery generated version and removes much of the plumbing for the no longer used ABCIResponses.

* make proto-gen

* Backported EvidenceList's method ToABCI from #7961

* make build

* Fix mockery for Mempool

* mockery

* Backported abci Application mocks from #7961

* mockery2

* Fixed new PrepareProposal test cases in state/execution_test.go

* Fixed returned errors in consensus/state.go

* lint

* Addressed @cmwaters' comment

Co-authored-by: mconcat <[email protected]>
Co-authored-by: JayT106 <[email protected]>
Co-authored-by: Sam Kleinman <[email protected]>
Co-authored-by: William Banfield <[email protected]>
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.

2 participants