* RPC Block Subscription (#21787)
* add stuff
* compiling
* add notify block
* wip
* feat: add blockSubscribe pubsub method
* address PR comments
Co-authored-by: Lucas B <buffalu@jito.network>
Co-authored-by: Zano <segfaultdoctor@protonmail.com>
(cherry picked from commit 76098dd42a
)
# Conflicts:
# Cargo.lock
# client-test/Cargo.toml
# rpc/src/rpc_subscriptions.rs
* Fix conflicts
Co-authored-by: segfaultdoctor <seg@jito.network>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
@@ -1203,6 +1203,12 @@ pub fn main() {
|
||||
.default_value("4")
|
||||
.help("PubSub worker threads"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("rpc_pubsub_enable_block_subscription")
|
||||
.long("rpc-pubsub-enable-block-subscription")
|
||||
.takes_value(false)
|
||||
.help("Enable the unstable RPC PubSub `blockSubscribe` subscription"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("rpc_pubsub_enable_vote_subscription")
|
||||
.long("rpc-pubsub-enable-vote-subscription")
|
||||
@@ -2217,6 +2223,7 @@ pub fn main() {
|
||||
)
|
||||
}),
|
||||
pubsub_config: PubSubConfig {
|
||||
enable_block_subscription: matches.is_present("rpc_pubsub_enable_block_subscription"),
|
||||
enable_vote_subscription: matches.is_present("rpc_pubsub_enable_vote_subscription"),
|
||||
max_active_subscriptions: value_t_or_exit!(
|
||||
matches,
|
||||
|
Reference in New Issue
Block a user