Skip to content

fix(consensus): proposer-based timestamp broken during backport#523

Merged
lklimek merged 11 commits intov0.10-devfrom
fix-pbts
Dec 15, 2022
Merged

fix(consensus): proposer-based timestamp broken during backport#523
lklimek merged 11 commits intov0.10-devfrom
fix-pbts

Conversation

@lklimek
Copy link
Collaborator

@lklimek lklimek commented Dec 7, 2022

Issue being fixed or feature implemented

Proposer-based timestamp logic was not backported correctly from upstream, and it conflicted with Tenderdash own implementation

What was done?

Reviewed tendermint PR and backported relevant logic.

How Has This Been Tested?

Re-enabled tests in pbts_test.go.

Breaking Changes

none

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lklimek lklimek changed the title fix(consensus): proposer-based timestamp is broken fix(consensus): proposer-based timestamp broken during backport Dec 8, 2022
@lklimek lklimek marked this pull request as ready for review December 12, 2022 13:46
shotonoff
shotonoff previously approved these changes Dec 13, 2022
Copy link
Collaborator

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

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

LGTM: left a few questions

Copy link
Collaborator

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

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

🚀

@lklimek lklimek merged commit e787cf9 into v0.10-dev Dec 15, 2022
@lklimek lklimek deleted the fix-pbts branch December 15, 2022 11:17
shotonoff added a commit that referenced this pull request Dec 15, 2022
* chore(types)!: rename genesis.json quorum fields (#515)

* fix(consensus): ProcessProposal executed twice for a block (#516)

* fix(consensus): ProcessProposal executed twice for a block

* fix(consensus): ensure process proposal is called once before finalize block

* fix(consensus): ensure ProcessProposal is called at least once for a block

* build(deps): Bump actions/setup-go from 3.3.1 to 3.4.0 (#524)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v3.3.1...v3.4.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): Bump bufbuild/buf-setup-action from 1.9.0 to 1.10.0 (#525)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(consensus): proposer-based timestamp broken during backport (#523)

* fix(consensus): proposer-based timestamp is broken

* fix(consensus): initial block time  must be equal genesis time

* test(consensus): update TestStateProposalTime for PBTS

* test(consensus): fix TestStateLock_POLSafety2 for PBTS

* Revert "test(consensus): skip broken PBTS tests (#500)"

This reverts commit 02452f1.

* refactor(time): simplify time processing

* feat(log): Allow definition of log assertions in TestingLogger

* test(consensus): refactor PBTS tests

* chore(log): replace TestingLogger interface with struct

* chore(state): move block time logic to separate fn

* chore(abci)!: remove Snapshot.core_chain_locked_height (#527)

* chore(abci)!: remove Snapshot.core_chain_locked_height

* build: bump Golang to 1.19

* fix(wal): improve wal replay mechanism (#510)

* refactor: improve wal iterator

* feat: add config parameter to turn on/off skipping the WAL rounds to the last

* refactor: clean up code

* refactor: add TestWALRoundsSkipper

* fix: derive a commit from vote-set during replay

* fix: add validators priority incrementing to select proper proposer

* chore(release): update changelog and version to 0.10.0-dev.6 (#526)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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