Rename system_networkState to system_unstable_networkState (#8001)

This commit is contained in:
Pierre Krieger
2021-02-02 15:58:29 +01:00
committed by GitHub
parent 7d65b5aa59
commit 38b6182fb8
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -79,9 +79,11 @@ pub trait SystemApi<Hash, Number> {
/// Returns current state of the network.
///
/// **Warning**: This API is not stable.
// TODO: make this stable and move structs https://github.com/paritytech/substrate/issues/1890
#[rpc(name = "system_networkState", returns = "jsonrpc_core::Value")]
/// **Warning**: This API is not stable. Please do not programmatically interpret its output,
/// as its format might change at any time.
// TODO: the future of this call is uncertain: https://github.com/paritytech/substrate/issues/1890
// https://github.com/paritytech/substrate/issues/5541
#[rpc(name = "system_unstable_networkState", returns = "jsonrpc_core::Value")]
fn system_network_state(&self)
-> Compat<BoxFuture<'static, jsonrpc_core::Result<jsonrpc_core::Value>>>;