mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-08-11 21:40:59 +00:00
Port safe commits from master to polkadot-staging (#2761)
* introduce bp_messages::ChainWithMessages (#2171) * Move Chain::ID from relay-level Chain to primitives-level Chain (#2181) * move Chain::ID from relay-level Chain to primitives-level Chain * removed chain IDs from bp-runtime * add missing file header * Some code grooming (#2276) * some code grooming: enable warn(missing_docs) for all piblic crates + added missing documentation + removed obsolete clippy/deny workarounds * removed strange allow + added comment related to other allow * removed incorrect_clone_impl_on_copy_type which is unknown to CI clippy
This commit is contained in:
committed by
Bastian Köcher
parent
37bb1e7909
commit
4004742e85
@@ -31,6 +31,8 @@ use std::time::Duration;
|
||||
pub struct TestChain;
|
||||
|
||||
impl bp_runtime::Chain for TestChain {
|
||||
const ID: ChainId = *b"test";
|
||||
|
||||
type BlockNumber = u32;
|
||||
type Hash = sp_core::H256;
|
||||
type Hasher = sp_runtime::traits::BlakeTwo256;
|
||||
@@ -51,7 +53,6 @@ impl bp_runtime::Chain for TestChain {
|
||||
}
|
||||
|
||||
impl Chain for TestChain {
|
||||
const ID: ChainId = *b"test";
|
||||
const NAME: &'static str = "Test";
|
||||
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str = "TestMethod";
|
||||
const AVERAGE_BLOCK_INTERVAL: Duration = Duration::from_millis(0);
|
||||
@@ -73,6 +74,8 @@ impl ChainWithBalances for TestChain {
|
||||
pub struct TestParachainBase;
|
||||
|
||||
impl bp_runtime::Chain for TestParachainBase {
|
||||
const ID: ChainId = *b"tstp";
|
||||
|
||||
type BlockNumber = u32;
|
||||
type Hash = sp_core::H256;
|
||||
type Hasher = sp_runtime::traits::BlakeTwo256;
|
||||
@@ -105,7 +108,6 @@ impl bp_runtime::UnderlyingChainProvider for TestParachain {
|
||||
}
|
||||
|
||||
impl Chain for TestParachain {
|
||||
const ID: ChainId = *b"test";
|
||||
const NAME: &'static str = "TestParachain";
|
||||
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str = "TestParachainMethod";
|
||||
const AVERAGE_BLOCK_INTERVAL: Duration = Duration::from_millis(0);
|
||||
|
||||
Reference in New Issue
Block a user