Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions substrate/client/rpc-servers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ fn hosts_filtering(enabled: bool, addrs: &[SocketAddr]) -> AllowHosts {

fn build_rpc_api<M: Send + Sync + 'static>(mut rpc_api: RpcModule<M>) -> RpcModule<M> {
let mut available_methods = rpc_api.method_names().collect::<Vec<_>>();
// The "rpc_methods" method name is guaranteed to not be registered in the rpc module
Comment thread
lexnv marked this conversation as resolved.
Outdated
// by `register_method`.
available_methods.push("rpc_methods");
available_methods.sort();

rpc_api
Expand Down