Skip to content

Commit d89da8d

Browse files
authored
Const fix (#46)
1 parent a2980ab commit d89da8d

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

node/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ sp-genesis-builder = { workspace = true }
5757
substrate-frame-rpc-system = { workspace = true }
5858

5959
# These dependencies are used for runtime benchmarking
60-
frame-benchmarking = { workspace = true }
6160
frame-benchmarking-cli = { workspace = true }
6261

6362
# Local Dependencies
@@ -77,7 +76,6 @@ substrate-build-script-utils = { workspace = true }
7776
runtime-benchmarks = [
7877
"bulletin-polkadot-runtime/runtime-benchmarks",
7978
"frame-benchmarking-cli/runtime-benchmarks",
80-
"frame-benchmarking/runtime-benchmarks",
8179
"frame-system/runtime-benchmarks",
8280
"polkadot-bulletin-chain-runtime/runtime-benchmarks",
8381
"sc-service/runtime-benchmarks",

runtimes/bulletin-polkadot/src/polkadot_bridge_config.rs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pub mod bp_people_polkadot {
141141
pub const PEOPLE_POLKADOT_PARACHAIN_ID: u32 = 1004;
142142

143143
/// Name of the With-PeoplePolkadot messages pallet instance that is deployed at bridged chains.
144-
pub const WITH_PEOPLE_POLKADOT_MESSAGES_PALLET_NAME: &str = "PeoplePolkadotMessages";
144+
pub const WITH_PEOPLE_POLKADOT_MESSAGES_PALLET_NAME: &str = "BridgePolkadotMessages";
145145

146146
decl_bridge_finality_runtime_apis!(people_polkadot);
147147
decl_bridge_messages_runtime_apis!(people_polkadot, LegacyLaneId);
@@ -175,33 +175,8 @@ parameter_types! {
175175
pub const PeoplePolkadotHeadsToKeep: u32 = 600;
176176
/// A maximal size of Polkadot Bridge Hub head digest.
177177
pub const MaxPeoplePolkadotHeadSize: u32 = bp_polkadot::MAX_NESTED_PARACHAIN_HEAD_DATA_SIZE;
178-
179-
// /// All active outbound lanes.
180-
// pub const ActiveOutboundLanes: &'static [LaneId] = &[XCM_LANE];
181-
// /// Maximal number of unrewarded relayer entries.
182-
// pub const MaxUnrewardedRelayerEntriesAtInboundLane: MessageNonce =
183-
// bp_people_polkadot::MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX;
184-
// /// Maximal number of unconfirmed messages.
185-
// pub const MaxUnconfirmedMessagesAtInboundLane: MessageNonce =
186-
// bp_people_polkadot::MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX;
187-
//
188-
// /// Sending chain location and lane used to communicate with Polkadot Bulletin chain.
189-
// pub FromPolkadotBulletinToBridgeHubPolkadotRoute: SenderAndLane = SenderAndLane::new(
190-
// Here.into(),
191-
// XCM_LANE,
192-
// );
193-
//
194-
// /// XCM message that is never sent to anyone.
195-
// pub NeverSentMessage: Option<Xcm<()>> = None;
196178
}
197179

198-
// impl bp_runtime::Parachain for BridgeHubPolkadotOrPolkadot {
199-
// #[cfg(not(feature = "polkadot"))]
200-
// const PARACHAIN_ID: u32 = bp_people_polkadot::BridgeHubPolkadot::PARACHAIN_ID;
201-
// #[cfg(feature = "polkadot")]
202-
// const PARACHAIN_ID: u32 = bp_people_polkadot::PeoplePolkadot::PARACHAIN_ID;
203-
// }
204-
//
205180
/// An instance of `pallet_bridge_grandpa` used to bridge with Polkadot.
206181
pub type WithPolkadotBridgeGrandpaInstance = ();
207182
impl pallet_bridge_grandpa::Config<WithPolkadotBridgeGrandpaInstance> for Runtime {

runtimes/bulletin-polkadot/src/xcm_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub type XcmRouter = LocalExporter<ToBridgeHaulBlobExporter, UniversalLocation>;
138138
/// The barriers one of which must be passed for an XCM message to be executed.
139139
pub type Barrier = TrailingSetTopicAsId<
140140
WithComputedOrigin<
141-
// We only allow unpaid execution from the Kawabunga parachain.
141+
// We only allow unpaid execution from the PeoplePolkadot parachain.
142142
AllowUnpaidTransactsFrom<RuntimeCall, OnlyPeoplePolkadotLocation>,
143143
UniversalLocation,
144144
ConstU32<2>,
@@ -246,7 +246,7 @@ impl DispatchBlob for ImmediateXcmDispatcher {
246246
}
247247
}
248248

249-
/// Decode inbound `BridgeMessage` from Kawabunga parachain.
249+
/// Decode inbound `BridgeMessage` from PeoplePolkadot parachain.
250250
pub(crate) fn decode_bridge_message(
251251
blob: &XcmAsPlainPayload,
252252
) -> Result<(VersionedInteriorLocation, VersionedXcm<RuntimeCall>), DispatchBlobError> {

0 commit comments

Comments
 (0)