Benign rust 255,696 installs download unavailable

sc-sync-state-rpc 0.60.0

“A RPC handler to create sync states for light clients.”

Large registry install base (10k+ downloads)Package is at least one year old
SHA-256824a9d7e5007175e1dfc7b526c9492e3b8702281b02096764cfea9a1b7eed940
MaleculeH(Db)Md

Evidence

English function-word token "the" lines 1–10
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0 …
English function-word token "and" lines 14–19
14:48… , either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! A RPC handler to create sync states for light clients.
19/ …
imports jsonrpsee::core::async_trait lines 39–57
39:45… tion.
40
41#![deny(unused_crate_dependencies)]
42
43use std::sync::Arc;
44
45use jsonrpsee::{
46 core::async_trait,
47 proc_macros::rpc,
48 types::{ErrorObject, ErrorObjectOwned},
49};
50
51use sc_client_api::StorageData;
52use sc_consensus_babe::{BabeWorkerHandle, Error as BabeError};
53use sp_blockchain::HeaderBackend;
54use sp_runtime::traits::{Block as BlockT, NumberFor};
55
56type SharedAuthoritySet<TBl> =
57 sc_consensus_grandpa::SharedAuthoritySet<<TBl as BlockT>::Hash, NumberFor<TBl>>; …
English function-word token "that" lines 105–109
105:42… <serde_json::Value>;
106
107/// Hardcoded information that allows light clients to sync quickly.
108#[derive(serde::Serialize, Clone)]
109#[serde(rename_all = " …
Rust parses JSON text or bytes lines 208–211
208:22… n_spec.as_json(raw).map_err(|e| Error::<Block>::JsonRpc(e))?;
209 serde_json::from_str(&json_str).map_err(|e| Error::<Block>::JsonRpc(e.to_string()))
210 }
211}

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.