diff --git a/core/src/replicator.rs b/core/src/replicator.rs index 4a0c399bd9..2ed6075564 100644 --- a/core/src/replicator.rs +++ b/core/src/replicator.rs @@ -343,7 +343,7 @@ impl Replicator { .expect("rpc request") .to_string(); let storage_entry_height = rpc_client - .make_rpc_request(2, RpcRequest::GetStorageMiningEntryHeight, None) + .make_rpc_request(2, RpcRequest::GetStorageEntryHeight, None) .expect("rpc request") .as_u64() .unwrap(); diff --git a/core/src/rpc.rs b/core/src/rpc.rs index 66135118cd..08131d5116 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -77,7 +77,7 @@ impl JsonRpcRequestProcessor { Ok(bs58::encode(hash).into_string()) } - fn get_storage_mining_entry_height(&self) -> Result { + fn get_storage_entry_height(&self) -> Result { let entry_height = self.storage_state.get_entry_height(); Ok(entry_height) } @@ -173,8 +173,8 @@ pub trait RpcSol { #[rpc(meta, name = "getStorageBlockHash")] fn get_storage_block_hash(&self, _: Self::Metadata) -> Result; - #[rpc(meta, name = "getStorageMiningEntryHeight")] - fn get_storage_mining_entry_height(&self, _: Self::Metadata) -> Result; + #[rpc(meta, name = "getStorageEntryHeight")] + fn get_storage_entry_height(&self, _: Self::Metadata) -> Result; #[rpc(meta, name = "getStoragePubkeysForEntryHeight")] fn get_storage_pubkeys_for_entry_height( @@ -335,11 +335,11 @@ impl RpcSol for RpcSolImpl { .get_storage_block_hash() } - fn get_storage_mining_entry_height(&self, meta: Self::Metadata) -> Result { + fn get_storage_entry_height(&self, meta: Self::Metadata) -> Result { meta.request_processor .read() .unwrap() - .get_storage_mining_entry_height() + .get_storage_entry_height() } fn get_storage_pubkeys_for_entry_height( diff --git a/core/src/rpc_request.rs b/core/src/rpc_request.rs index 613c803394..eb4694926d 100644 --- a/core/src/rpc_request.rs +++ b/core/src/rpc_request.rs @@ -138,7 +138,7 @@ pub enum RpcRequest { SignVote, DeregisterNode, GetStorageBlockHash, - GetStorageMiningEntryHeight, + GetStorageEntryHeight, GetStoragePubkeysForEntryHeight, } @@ -158,7 +158,7 @@ impl RpcRequest { RpcRequest::SignVote => "signVote", RpcRequest::DeregisterNode => "deregisterNode", RpcRequest::GetStorageBlockHash => "getStorageBlockHash", - RpcRequest::GetStorageMiningEntryHeight => "getStorageMiningEntryHeight", + RpcRequest::GetStorageEntryHeight => "getStorageEntryHeight", RpcRequest::GetStoragePubkeysForEntryHeight => "getStoragePubkeysForEntryHeight", }; let mut request = json!({