Skip to content

Commit 6d8f629

Browse files
authored
Bko nits (#59)
* Remote TODOs * Change name * More tests
1 parent 5e71cf3 commit 6d8f629

File tree

4 files changed

+357
-364
lines changed

4 files changed

+357
-364
lines changed

runtimes/bulletin-polkadot/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ substrate-wasm-builder = { optional = true, workspace = true }
9191
[dev-dependencies]
9292
bp-test-utils = { workspace = true }
9393
bridge-runtime-common = { workspace = true, features = ["integrity-test"] }
94+
pallet-bridge-messages = { workspace = true, features = ["test-helpers"] }
9495
hex = { workspace = true }
9596
sp-io = { workspace = true }
9697
sp-keyring = { workspace = true }

runtimes/bulletin-polkadot/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ use pallet_transaction_payment::RuntimeDispatchInfo;
6363
pub use sp_runtime::BuildStorage;
6464
pub use sp_runtime::{Perbill, Permill};
6565

66-
mod polkadot_bridge_config;
67-
use polkadot_bridge_config::{self as bridge_config, bp_people_polkadot, bp_polkadot};
66+
pub mod polkadot_bridge_config;
67+
pub use polkadot_bridge_config::{self as bridge_config, bp_people_polkadot, bp_polkadot};
6868

6969
mod genesis_config_presets;
7070
mod weights;
@@ -114,8 +114,8 @@ pub mod opaque {
114114
// https://docs.substrate.io/main-docs/build/upgrade#runtime-versioning
115115
#[sp_version::runtime_version]
116116
pub const VERSION: RuntimeVersion = RuntimeVersion {
117-
spec_name: alloc::borrow::Cow::Borrowed("polkadot-bulletin-chain"),
118-
impl_name: alloc::borrow::Cow::Borrowed("polkadot-bulletin-chain"),
117+
spec_name: alloc::borrow::Cow::Borrowed("bulletin-polkadot"),
118+
impl_name: alloc::borrow::Cow::Borrowed("bulletin-polkadot"),
119119
authoring_version: 0,
120120
spec_version: 1_000_000,
121121
impl_version: 1,
@@ -274,7 +274,7 @@ impl pallet_session::Config for Runtime {
274274
type WeightInfo = pallet_session::weights::SubstrateWeight<Runtime>;
275275
type Currency = pallets_common::NoCurrency<AccountId, RuntimeHoldReason>;
276276
type KeyDeposit = ();
277-
// TODO: check it later
277+
// TODO: nothing for now, maybe in the future.
278278
type DisablingStrategy = ();
279279
}
280280

@@ -343,7 +343,7 @@ impl pallet_transaction_storage::Config for Runtime {
343343
type RuntimeEvent = RuntimeEvent;
344344
type WeightInfo = weights::pallet_transaction_storage::WeightInfo<Runtime>;
345345
type MaxBlockTransactions = ConstU32<512>;
346-
// TODO: add here comment
346+
/// Max transaction size per block needs to be aligned with [`BlockLength`].
347347
type MaxTransactionSize = ConstU32<{ 8 * 1024 * 1024 }>;
348348
type StoragePeriod = StoragePeriod;
349349
type AuthorizationPeriod = AuthorizationPeriod;

0 commit comments

Comments
 (0)