Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Support the subscription of every imported block #13372

Conversation

liuchengxu
Copy link
Contributor

@liuchengxu liuchengxu commented Feb 13, 2023

This PR adds a new method every_import_notification_stream to the trait BlockchainEvents so that users can subscribe to every imported block in addition to the existing block import notification which is only fired on full synced or reorg.

Closes #13315

@liuchengxu liuchengxu changed the title Support the subscription of every import block Support the subscription of every imported block Feb 13, 2023
client/service/src/client/client.rs Outdated Show resolved Hide resolved
client/api/src/backend.rs Outdated Show resolved Hide resolved
client/api/src/client.rs Show resolved Hide resolved
client/service/src/client/client.rs Outdated Show resolved Hide resolved
@liuchengxu liuchengxu requested review from bkchr and removed request for bkchr February 13, 2023 12:48
@liuchengxu
Copy link
Contributor Author

Kindly ping @bkchr

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@melekes melekes requested a review from a team February 23, 2023 06:33
client/service/src/client/client.rs Show resolved Hide resolved
client/service/src/client/client.rs Show resolved Hide resolved
client/service/src/client/client.rs Outdated Show resolved Hide resolved
client/service/src/client/client.rs Outdated Show resolved Hide resolved
client/service/src/client/client.rs Outdated Show resolved Hide resolved
@bkchr
Copy link
Member

bkchr commented Feb 23, 2023

Kindly ping @bkchr

Please also merge master to make CI happy.

@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Feb 23, 2023
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

TY!

@bkchr
Copy link
Member

bkchr commented Feb 27, 2023

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit 3d8a025 into paritytech:master Feb 27, 2023
@liuchengxu liuchengxu deleted the block-import-notification-for-every-block branch February 27, 2023 14:58
ukint-vs pushed a commit to gear-tech/substrate that referenced this pull request Apr 10, 2023
* Support the subscription of every import block

Close paritytech#13315

* Clean up any closed block import notification sinks

* Apply review suggestions

* Nit

* `every_block_import_notification_sinks` -> `every_import_notification_sinks`

* Apply review suggestions
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* Support the subscription of every import block

Close paritytech#13315

* Clean up any closed block import notification sinks

* Apply review suggestions

* Nit

* `every_block_import_notification_sinks` -> `every_import_notification_sinks`

* Apply review suggestions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block import notification for literally every imported block even when the chain is not synced to the tip
3 participants