Skip to content

Commit

Permalink
feat: custom rpc finalized block subscriptions (#5466)
Browse files Browse the repository at this point in the history
* feat: custom_rpc finalized block subscriptions

* feat: instantiated new chain_head api inside custom-rpc

* feat: changed subscription to use new chainHead_v1_follow api

* fix: properly handle finalized events + code cleanup

* fix: return error msg when pool doesn't exist in cf_subscribe_scheduled_swaps

* fix: remove sp_blockchain dependency

* fix: move bool into closure

* feat: use stream combinators

* feat: always return a single leading block; allow new block subscriptions;

* fix: include Initialized events only when NotificationBehaviour is Finalized

* fix: downgrade Cargo.lock version

---------

Co-authored-by: Daniel <daniel@chainflip.io>
  • Loading branch information
nmammeri and dandanlen authored Dec 10, 2024
1 parent 4469f9b commit e8cbf84
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 78 deletions.
14 changes: 8 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions state-chain/custom-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ sp-core = { workspace = true, default-features = true }
sp-rpc = { workspace = true, default-features = true }
sc-rpc = { workspace = true, default-features = true }
sc-rpc-api = { workspace = true, default-features = true }
sc-rpc-spec-v2 = { workspace = true, default-features = true }
sp-runtime = { workspace = true, default-features = true }
sp-state-machine = { workspace = true, default-features = true }
sc-client-api = { workspace = true, default-features = true }
Expand Down
Loading

0 comments on commit e8cbf84

Please sign in to comment.