Skip to content

Commit 9492f1e

Browse files
committed
Merge branch 'master' into outbound-queue-v2
2 parents 5272515 + edf79aa commit 9492f1e

146 files changed

Lines changed: 5110 additions & 2643 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/scripts/release/build-deb.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ cargo install --version 2.7.0 cargo-deb --locked -q
99
echo "Using cargo-deb v$(cargo-deb --version)"
1010
echo "Building a Debian package for '$PRODUCT' in '$PROFILE' profile"
1111

12-
# we need to start the custom version with a didgit as requires it cargo-deb
13-
cargo deb --profile $PROFILE --no-strip --no-build -p $PRODUCT --deb-version 1-$VERSION
12+
cargo deb --profile $PROFILE --no-strip --no-build -p $PRODUCT --deb-version $VERSION
1413

1514
deb=target/debian/$PRODUCT_*_amd64.deb
1615

.github/workflows/release-10_rc-automation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
app-id: ${{ vars.RELEASE_AUTOMATION_APP_ID }}
4444
private-key: ${{ secrets.RELEASE_AUTOMATION_APP_PRIVATE_KEY }}
45-
owner: paritytech-release
45+
owner: paritytech
4646

4747
- name: Checkout sources
4848
uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7

.github/workflows/release-branchoff-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
with:
5959
app-id: ${{ vars.RELEASE_AUTOMATION_APP_ID }}
6060
private-key: ${{ secrets.RELEASE_AUTOMATION_APP_PRIVATE_KEY }}
61-
owner: paritytech-release
61+
owner: paritytech
6262

6363
- name: Checkout sources
6464
uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7

.github/workflows/release-reusable-rc-buid.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ jobs:
151151
- name: Build polkadot deb package
152152
shell: bash
153153
run: |
154-
. "${GITHUB_WORKSPACE}"/.github/scripts/release/build-deb.sh ${{ inputs.package }} ${{ inputs.release_tag }}
154+
. "${GITHUB_WORKSPACE}"/.github/scripts/common/lib.sh
155+
VERSION=$(get_polkadot_node_version_from_code)
156+
. "${GITHUB_WORKSPACE}"/.github/scripts/release/build-deb.sh ${{ inputs.package }} ${VERSION}
155157
156158
- name: Generate artifact attestation
157159
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ artifacts
3030
bin/node-template/Cargo.lock
3131
nohup.out
3232
polkadot_argument_parsing
33-
polkadot.*
3433
!docs/sdk/src/polkadot_sdk/polkadot.rs
3534
pwasm-alloc/Cargo.lock
3635
pwasm-libc/Cargo.lock

.gitlab/pipeline/zombienet/polkadot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ zombienet-polkadot-functional-0017-sync-backing:
241241
--local-dir="${LOCAL_DIR}/functional"
242242
--test="0017-sync-backing.zndsl"
243243

244-
.zombienet-polkadot-functional-0018-shared-core-idle-parachain:
244+
zombienet-polkadot-functional-0018-shared-core-idle-parachain:
245245
extends:
246246
- .zombienet-polkadot-common
247247
before_script:

Cargo.lock

Lines changed: 21 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ frame-system-rpc-runtime-api = { path = "substrate/frame/system/rpc/runtime-api"
796796
frame-try-runtime = { path = "substrate/frame/try-runtime", default-features = false }
797797
fs4 = { version = "0.7.0" }
798798
fs_extra = { version = "1.3.0" }
799-
futures = { version = "0.3.30" }
799+
futures = { version = "0.3.31" }
800800
futures-channel = { version = "0.3.23" }
801801
futures-timer = { version = "3.0.2" }
802802
futures-util = { version = "0.3.30", default-features = false }
@@ -1214,7 +1214,6 @@ serde-big-array = { version = "0.3.2" }
12141214
serde_derive = { version = "1.0.117" }
12151215
serde_json = { version = "1.0.132", default-features = false }
12161216
serde_yaml = { version = "0.9" }
1217-
serial_test = { version = "2.0.0" }
12181217
sha1 = { version = "0.10.6" }
12191218
sha2 = { version = "0.10.7", default-features = false }
12201219
sha3 = { version = "0.10.0", default-features = false }

bridges/snowbridge/pallets/inbound-queue-v2/src/mock.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ use sp_runtime::{
1919
BuildStorage, FixedU128, MultiSignature,
2020
};
2121
use sp_std::{convert::From, default::Default};
22-
use xcm::{latest::SendXcm, prelude::*};
22+
use xcm::prelude::*;
2323
use xcm_executor::AssetsInHolding;
2424

2525
use crate::{self as inbound_queue};
2626

27+
use xcm::latest::{ROCOCO_GENESIS_HASH, WESTEND_GENESIS_HASH};
28+
2729
type Block = frame_system::mocking::MockBlock<Test>;
2830

2931
frame_support::construct_runtime!(
@@ -113,8 +115,8 @@ parameter_types! {
113115
pub const InitialFund: u128 = 1_000_000_000_000;
114116
pub const InboundQueuePalletInstance: u8 = 80;
115117
pub UniversalLocation: InteriorLocation =
116-
[GlobalConsensus(Westend), Parachain(1002)].into();
117-
pub AssetHubFromEthereum: Location = Location::new(1,[GlobalConsensus(Westend),Parachain(1000)]);
118+
[GlobalConsensus(ByGenesis(WESTEND_GENESIS_HASH)), Parachain(1002)].into();
119+
pub AssetHubFromEthereum: Location = Location::new(1,[GlobalConsensus(ByGenesis(WESTEND_GENESIS_HASH)),Parachain(1000)]);
118120
}
119121

120122
#[cfg(feature = "runtime-benchmarks")]

cumulus/client/service/src/lib.rs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ use sc_consensus::{
4040
use sc_network::{config::SyncMode, service::traits::NetworkService, NetworkBackend};
4141
use sc_network_sync::SyncingService;
4242
use sc_network_transactions::TransactionsHandlerController;
43-
use sc_service::{
44-
build_polkadot_syncing_strategy, Configuration, NetworkStarter, SpawnTaskHandle, TaskManager,
45-
WarpSyncConfig,
46-
};
43+
use sc_service::{Configuration, NetworkStarter, SpawnTaskHandle, TaskManager, WarpSyncConfig};
4744
use sc_telemetry::{log, TelemetryWorkerHandle};
4845
use sc_utils::mpsc::TracingUnboundedSender;
4946
use sp_api::ProvideRuntimeApi;
@@ -429,7 +426,7 @@ pub struct BuildNetworkParams<
429426
pub async fn build_network<'a, Block, Client, RCInterface, IQ, Network>(
430427
BuildNetworkParams {
431428
parachain_config,
432-
mut net_config,
429+
net_config,
433430
client,
434431
transaction_pool,
435432
para_id,
@@ -500,16 +497,6 @@ where
500497
parachain_config.prometheus_config.as_ref().map(|config| &config.registry),
501498
);
502499

503-
let syncing_strategy = build_polkadot_syncing_strategy(
504-
parachain_config.protocol_id(),
505-
parachain_config.chain_spec.fork_id(),
506-
&mut net_config,
507-
warp_sync_config,
508-
client.clone(),
509-
&spawn_handle,
510-
parachain_config.prometheus_config.as_ref().map(|config| &config.registry),
511-
)?;
512-
513500
sc_service::build_network(sc_service::BuildNetworkParams {
514501
config: parachain_config,
515502
net_config,
@@ -518,7 +505,7 @@ where
518505
spawn_handle,
519506
import_queue,
520507
block_announce_validator_builder: Some(Box::new(move |_| block_announce_validator)),
521-
syncing_strategy,
508+
warp_sync_config,
522509
block_relay: None,
523510
metrics,
524511
})

0 commit comments

Comments
 (0)