Skip to content

feat(config): add EventBusBufferCapacity setting (backport #5849) - #5914

Merged
mergify[bot] merged 2 commits into
v0.38.xfrom
mergify/bp/v0.38.x/pr-5849
Jun 11, 2026
Merged

mergify[bot] merged 2 commits into
v0.38.xfrom
mergify/bp/v0.38.x/pr-5849

Conversation

@mergify

@mergify mergify Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Currently it's noway to turn on a buffered eventbus in cometBFT, this PR add new config settings to let downstream projects to be able to turn on without fork/patch cometBFT repo.

  • Add event_bus_buffer_capacity field to BaseConfig (default 0, preserves existing unbuffered behavior).
  • Wire the value through node.createAndStartEventBus to types.NewEventBusWithBufferCapacity.
  • Surface the new field in the generated config.toml template.

This is an automatic backport of pull request #5849 done by [Mergify](https://mergify.com).

## Summary
Currently it's noway to turn on a buffered eventbus in cometBFT, this PR
add new config settings to let downstream projects to be able to turn on
without fork/patch cometBFT repo.

- Add `event_bus_buffer_capacity` field to `BaseConfig` (default `0`,
preserves existing unbuffered behavior).
- Wire the value through `node.createAndStartEventBus` to
`types.NewEventBusWithBufferCapacity`.
- Surface the new field in the generated `config.toml` template.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Dmitry S <[email protected]>
(cherry picked from commit 4df23c5)

# Conflicts:
#	CHANGELOG.md
@mergify mergify Bot added the conflicts label Jun 5, 2026
@mergify

mergify Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 4df23c5 has failed:

On branch mergify/bp/v0.38.x/pr-5849
Your branch is up to date with 'origin/v0.38.x'.

You are currently cherry-picking commit 4df23c59.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   config/config.go
	modified:   config/config_test.go
	modified:   config/toml.go
	modified:   node/node.go
	modified:   node/setup.go
	modified:   types/event_bus.go
	modified:   types/event_bus_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   CHANGELOG.md

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@greptile-apps

greptile-apps Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@aljo242 aljo242 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Backport of #5849 to v0.38.x. Conflict resolution looks correct: kept only the #5849 CHANGELOG entry, dropped the unrelated #5904/#5875 entries. CI green.

@mergify
mergify Bot merged commit fe7b504 into v0.38.x Jun 11, 2026
19 checks passed
@mergify
mergify Bot deleted the mergify/bp/v0.38.x/pr-5849 branch June 11, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants