Remove node-primitives (#4877)

This is some Substrate crate that shouldn't be used outside of Substrate.
This commit is contained in:
Bastian Köcher
2022-02-08 23:48:12 +01:00
committed by GitHub
parent a3bc1f4869
commit f3f18ace7d
3 changed files with 4 additions and 17 deletions
+1 -14
View File
@@ -4487,19 +4487,6 @@ dependencies = [
"memoffset", "memoffset",
] ]
[[package]]
name = "node-primitives"
version = "2.0.0"
source = "git+https://github.com/paritytech/substrate?branch=master#529c2fd27d3d584951f73ba05bdea357117eadec"
dependencies = [
"frame-system",
"parity-scale-codec",
"scale-info",
"sp-application-crypto",
"sp-core",
"sp-runtime",
]
[[package]] [[package]]
name = "nodrop" name = "nodrop"
version = "0.1.14" version = "0.1.14"
@@ -5969,9 +5956,9 @@ dependencies = [
"assert_cmd", "assert_cmd",
"color-eyre", "color-eyre",
"nix", "nix",
"node-primitives",
"parity-util-mem", "parity-util-mem",
"polkadot-cli", "polkadot-cli",
"polkadot-core-primitives",
"remote-externalities", "remote-externalities",
"tempfile", "tempfile",
"tokio", "tokio",
+1 -1
View File
@@ -23,7 +23,7 @@ nix = "0.23.1"
tempfile = "3.2.0" tempfile = "3.2.0"
tokio = "1.15.0" tokio = "1.15.0"
remote-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" } remote-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" }
node-primitives = { git = "https://github.com/paritytech/substrate", branch = "master" } polkadot-core-primitives = { path = "core-primitives" }
[workspace] [workspace]
members = [ members = [
+2 -2
View File
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with Substrate. If not, see <http://www.gnu.org/licenses/>.
use node_primitives::Block; use polkadot_core_primitives::Block;
use remote_externalities::rpc_api::get_finalized_head; use remote_externalities::rpc_api::get_finalized_head;
use std::{ use std::{
process::{Child, ExitStatus}, process::{Child, ExitStatus},
@@ -25,7 +25,7 @@ use tokio::time::timeout;
static LOCALHOST_WS: &str = "ws://127.0.0.1:9944/"; static LOCALHOST_WS: &str = "ws://127.0.0.1:9944/";
/// Wait for the given `child` the given ammount of `secs`. /// Wait for the given `child` the given amount of `secs`.
/// ///
/// Returns the `Some(exit status)` or `None` if the process did not finish in the given time. /// Returns the `Some(exit status)` or `None` if the process did not finish in the given time.
pub fn wait_for(child: &mut Child, secs: usize) -> Option<ExitStatus> { pub fn wait_for(child: &mut Child, secs: usize) -> Option<ExitStatus> {