Skip to content

feat(proto): add SyncingToHeight to FinalizeBlockRequest#3134

Merged
melekes merged 12 commits intomainfrom
1247-node-sync
May 30, 2024
Merged

feat(proto): add SyncingToHeight to FinalizeBlockRequest#3134
melekes merged 12 commits intomainfrom
1247-node-sync

Conversation

@melekes
Copy link
Collaborator

@melekes melekes commented May 27, 2024

to let the ABCI app know if CometBFT is syncing or not. If the node is syncing/replaying blocks, the value is the maximum known height. If not, SyncingToHeight equals Height in FinalizeBlockRequest.

Closes #1247


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
  • Title follows the Conventional Commits spec

@melekes melekes self-assigned this May 27, 2024
@melekes melekes marked this pull request as ready for review May 27, 2024 13:38
@melekes melekes requested review from a team as code owners May 27, 2024 13:38
@melekes melekes requested a review from a team May 27, 2024 13:38
@melekes melekes changed the title feat(proto): add Syncing to FinalizeBlockRequest feat(proto): add SyncingTo to FinalizeBlockRequest May 28, 2024
@melekes melekes changed the title feat(proto): add SyncingTo to FinalizeBlockRequest feat(proto): add SyncingTo height to FinalizeBlockRequest May 28, 2024
@melekes melekes changed the title feat(proto): add SyncingTo height to FinalizeBlockRequest feat(proto): add SyncingToHeight to FinalizeBlockRequest May 28, 2024
Copy link
Collaborator

@andynog andynog left a comment

Choose a reason for hiding this comment

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

looks good to me, minor suggestions/comments

melekes and others added 2 commits May 29, 2024 09:33
Co-authored-by: Andy Nogueira <me@andynogueira.dev>
Copy link
Collaborator

@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 @melekes for implementing this! 🙏

@melekes melekes added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit 68e5e1b May 30, 2024
@melekes melekes deleted the 1247-node-sync branch May 30, 2024 05:23
mergify bot pushed a commit that referenced this pull request May 30, 2024
to let the ABCI app know if CometBFT is syncing or not. If the node is
syncing/replaying blocks, the value is the maximum known height. If not,
`SyncingToHeight` equals `Height` in `FinalizeBlockRequest`.

Closes #1247

---

#### PR checklist

- [ ] Tests written/updated
- [x] 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
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

---------

Co-authored-by: Andy Nogueira <me@andynogueira.dev>
(cherry picked from commit 68e5e1b)

# Conflicts:
#	api/cometbft/abci/v1/types.pb.go
#	internal/blocksync/reactor.go
#	state/execution.go
melekes added a commit that referenced this pull request May 30, 2024
…#3134) (#3146)

to let the ABCI app know if CometBFT is syncing or not. If the node is
syncing/replaying blocks, the value is the maximum known height. If not,
`SyncingToHeight` equals `Height` in `FinalizeBlockRequest`.

Closes #1247

---

#### PR checklist

- [ ] Tests written/updated
- [x] 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
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3134 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.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.

Support for applications to detect if node is in sync with network or replaying blocks

3 participants