Skip to content

Revert "feat!: account for time already elapsed when waiting after the commit (#965)"#1033

Merged
evan-forbes merged 1 commit intov0.34.x-celestiafrom
evan/revert-dynamic-timeout-commits
Jul 11, 2023
Merged

Revert "feat!: account for time already elapsed when waiting after the commit (#965)"#1033
evan-forbes merged 1 commit intov0.34.x-celestiafrom
evan/revert-dynamic-timeout-commits

Conversation

@evan-forbes
Copy link
Copy Markdown
Member

Description

This reverts commit cc1bc3f.

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use
    unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@evan-forbes evan-forbes requested a review from cmwaters as a code owner July 11, 2023 16:11
@evan-forbes evan-forbes self-assigned this Jul 11, 2023
@evan-forbes evan-forbes added the T:Bug Type: Bug (confirmed) label Jul 11, 2023
@evan-forbes evan-forbes enabled auto-merge (squash) July 11, 2023 16:22
@evan-forbes evan-forbes merged commit d24c81a into v0.34.x-celestia Jul 11, 2023
@evan-forbes evan-forbes deleted the evan/revert-dynamic-timeout-commits branch July 11, 2023 16:27
cmwaters pushed a commit that referenced this pull request Jul 20, 2023
cmwaters pushed a commit that referenced this pull request Jul 24, 2023
cmwaters pushed a commit that referenced this pull request Jul 27, 2023
cmwaters pushed a commit that referenced this pull request Jul 27, 2023
@faddat faddat mentioned this pull request Feb 22, 2024
3 tasks
evan-forbes pushed a commit that referenced this pull request Mar 11, 2025
…different from the one returned in the preceding prepareProposal (#1033) (#1052)

If a proposer fails after calling prepareProposal and before calling processProposal, then the following may happen upon restarting:
- if failed before signing another message, then will invoke prepareProposal again, sign a new block, probably empty, and propose it;
- if failed after signing a proposal but before writing the  proposal message into the WAL, then will invoke prepareProposal and produce a new, probably empty block, [fail to sign it](https://github.com/cometbft/cometbft/blob/2789a59a9cc61c6ea56a6b266eeadf0f26ca2456/consensus/state.go#L1221), and not invoke processProposal; prevote timeouts will ensure the CometBFT is not stuck;
- if failed after writing the proposal message to the WAL, then will invoke prepareProposal, produce a new, probably empty block, fail to sign it, and invoke processProposal with the block signed before crashing.

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog)
- [x] Updated relevant documentation (`docs/` or `spec/`) and code comments

(cherry picked from commit b23ef56)

Co-authored-by: Lasaro <lasaro@informal.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T:Bug Type: Bug (confirmed)

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants