Skip to content

Commit 02814e0

Browse files
committed
Merge branch 'master' into tsv-disabling
2 parents bff0240 + b371c35 commit 02814e0

File tree

265 files changed

+7265
-3095
lines changed

Some content is hidden

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

265 files changed

+7265
-3095
lines changed

.github/workflows/claim-crates.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Claim Crates
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
claim-crates:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
13+
14+
- name: Rust Cache
15+
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
16+
with:
17+
cache-on-failure: true
18+
19+
- name: install parity-publish
20+
run: cargo install [email protected]
21+
22+
- name: parity-publish claim
23+
env:
24+
PARITY_PUBLISH_CRATESIO_TOKEN: ${{ secrets.CRATESIO_PUBLISH_CLAIM_TOKEN }}
25+
run: parity-publish claim

.github/workflows/review-trigger.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313

1414
jobs:
1515
trigger-review-bot:
16-
if: github.event.pull_request.draft != true
16+
# (It is not a draft) && (it is not a review || it is an approving review)
17+
if: ${{ github.event.pull_request.draft != true && (github.event_name != 'pull_request_review' || (github.event.review && github.event.review.state == 'APPROVED')) }}
1718
runs-on: ubuntu-latest
1819
name: trigger review bot
1920
steps:

.gitlab/pipeline/zombienet/substrate.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@
3838
tags:
3939
- zombienet-polkadot-integration-test
4040

41-
zombienet-substrate-0000-block-building:
42-
extends:
43-
- .zombienet-substrate-common
44-
script:
45-
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
46-
--local-dir="${LOCAL_DIR}/0000-block-building"
47-
--test="block-building.zndsl"
41+
# Skip this one until PolkadotJS includes `SkipCheckIfFeeless` extension
42+
# zombienet-substrate-0000-block-building:
43+
# extends:
44+
# - .zombienet-substrate-common
45+
# script:
46+
# - /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
47+
# --local-dir="${LOCAL_DIR}/0000-block-building"
48+
# --test="block-building.zndsl"
4849

4950
zombienet-substrate-0001-basic-warp-sync:
5051
extends:

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ members = [
293293
"substrate/frame/child-bounties",
294294
"substrate/frame/collective",
295295
"substrate/frame/contracts",
296+
"substrate/frame/contracts/fixtures",
296297
"substrate/frame/contracts/primitives",
297298
"substrate/frame/contracts/proc-macro",
298299
"substrate/frame/conviction-voting",
@@ -381,6 +382,7 @@ members = [
381382
"substrate/frame/transaction-payment/asset-tx-payment",
382383
"substrate/frame/transaction-payment/rpc",
383384
"substrate/frame/transaction-payment/rpc/runtime-api",
385+
"substrate/frame/transaction-payment/skip-feeless-payment",
384386
"substrate/frame/transaction-storage",
385387
"substrate/frame/treasury",
386388
"substrate/frame/try-runtime",

cumulus/client/cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "cumulus-client-cli"
33
version = "0.1.0"
44
authors.workspace = true
55
edition.workspace = true
6+
description = "Parachain node CLI utilities."
67
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
78

89
[dependencies]

cumulus/client/collator/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "cumulus-client-collator"
33
version = "0.1.0"
44
authors.workspace = true
55
edition.workspace = true
6+
description = "Common node-side functionality and glue code to collate parachain blocks."
67
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
78

89
[dependencies]

cumulus/client/pov-recovery/src/active_candidate_recovery.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
use sp_runtime::traits::Block as BlockT;
1818

19-
use polkadot_node_primitives::AvailableData;
19+
use polkadot_node_primitives::PoV;
2020
use polkadot_node_subsystem::messages::AvailabilityRecoveryMessage;
2121

2222
use futures::{channel::oneshot, stream::FuturesUnordered, Future, FutureExt, StreamExt};
2323

24-
use std::{collections::HashSet, pin::Pin};
24+
use std::{collections::HashSet, pin::Pin, sync::Arc};
2525

2626
use crate::RecoveryHandle;
2727

@@ -30,9 +30,8 @@ use crate::RecoveryHandle;
3030
/// This handles the candidate recovery and tracks the activate recoveries.
3131
pub(crate) struct ActiveCandidateRecovery<Block: BlockT> {
3232
/// The recoveries that are currently being executed.
33-
recoveries: FuturesUnordered<
34-
Pin<Box<dyn Future<Output = (Block::Hash, Option<AvailableData>)> + Send>>,
35-
>,
33+
recoveries:
34+
FuturesUnordered<Pin<Box<dyn Future<Output = (Block::Hash, Option<Arc<PoV>>)> + Send>>>,
3635
/// The block hashes of the candidates currently being recovered.
3736
candidates: HashSet<Block::Hash>,
3837
recovery_handle: Box<dyn RecoveryHandle>,
@@ -68,7 +67,7 @@ impl<Block: BlockT> ActiveCandidateRecovery<Block> {
6867
self.recoveries.push(
6968
async move {
7069
match rx.await {
71-
Ok(Ok(res)) => (block_hash, Some(res)),
70+
Ok(Ok(res)) => (block_hash, Some(res.pov)),
7271
Ok(Err(error)) => {
7372
tracing::debug!(
7473
target: crate::LOG_TARGET,
@@ -93,8 +92,8 @@ impl<Block: BlockT> ActiveCandidateRecovery<Block> {
9392

9493
/// Waits for the next recovery.
9594
///
96-
/// If the returned [`AvailableData`] is `None`, it means that the recovery failed.
97-
pub async fn wait_for_recovery(&mut self) -> (Block::Hash, Option<AvailableData>) {
95+
/// If the returned [`PoV`] is `None`, it means that the recovery failed.
96+
pub async fn wait_for_recovery(&mut self) -> (Block::Hash, Option<Arc<PoV>>) {
9897
loop {
9998
if let Some(res) = self.recoveries.next().await {
10099
self.candidates.remove(&res.0);

cumulus/client/pov-recovery/src/lib.rs

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ use sc_consensus::import_queue::{ImportQueueService, IncomingBlock};
5151
use sp_consensus::{BlockOrigin, BlockStatus, SyncOracle};
5252
use sp_runtime::traits::{Block as BlockT, Header as HeaderT, NumberFor};
5353

54-
use polkadot_node_primitives::{AvailableData, POV_BOMB_LIMIT};
54+
use polkadot_node_primitives::{PoV, POV_BOMB_LIMIT};
5555
use polkadot_node_subsystem::messages::AvailabilityRecoveryMessage;
5656
use polkadot_overseer::Handle as OverseerHandle;
5757
use polkadot_primitives::{
@@ -346,15 +346,11 @@ where
346346
}
347347

348348
/// Handle a recovered candidate.
349-
async fn handle_candidate_recovered(
350-
&mut self,
351-
block_hash: Block::Hash,
352-
available_data: Option<AvailableData>,
353-
) {
354-
let available_data = match available_data {
355-
Some(data) => {
349+
async fn handle_candidate_recovered(&mut self, block_hash: Block::Hash, pov: Option<&PoV>) {
350+
let pov = match pov {
351+
Some(pov) => {
356352
self.candidates_in_retry.remove(&block_hash);
357-
data
353+
pov
358354
},
359355
None =>
360356
if self.candidates_in_retry.insert(block_hash) {
@@ -373,18 +369,16 @@ where
373369
},
374370
};
375371

376-
let raw_block_data = match sp_maybe_compressed_blob::decompress(
377-
&available_data.pov.block_data.0,
378-
POV_BOMB_LIMIT,
379-
) {
380-
Ok(r) => r,
381-
Err(error) => {
382-
tracing::debug!(target: LOG_TARGET, ?error, "Failed to decompress PoV");
372+
let raw_block_data =
373+
match sp_maybe_compressed_blob::decompress(&pov.block_data.0, POV_BOMB_LIMIT) {
374+
Ok(r) => r,
375+
Err(error) => {
376+
tracing::debug!(target: LOG_TARGET, ?error, "Failed to decompress PoV");
383377

384-
self.reset_candidate(block_hash);
385-
return
386-
},
387-
};
378+
self.reset_candidate(block_hash);
379+
return
380+
},
381+
};
388382

389383
let block_data = match ParachainBlockData::<Block>::decode(&mut &raw_block_data[..]) {
390384
Ok(d) => d,
@@ -595,10 +589,10 @@ where
595589
next_to_recover = self.candidate_recovery_queue.next_recovery().fuse() => {
596590
self.recover_candidate(next_to_recover).await;
597591
},
598-
(block_hash, available_data) =
592+
(block_hash, pov) =
599593
self.active_candidate_recovery.wait_for_recovery().fuse() =>
600594
{
601-
self.handle_candidate_recovered(block_hash, available_data).await;
595+
self.handle_candidate_recovered(block_hash, pov.as_deref()).await;
602596
},
603597
}
604598
}

cumulus/client/relay-chain-inprocess-interface/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ authors.workspace = true
33
name = "cumulus-relay-chain-inprocess-interface"
44
version = "0.1.0"
55
edition.workspace = true
6+
description = "Implementation of the RelayChainInterface trait for Polkadot full-nodes."
67
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
78

89
[dependencies]

0 commit comments

Comments
 (0)