Skip to content

Commit

Permalink
[stable2407] Backport #6031 (#6106)
Browse files Browse the repository at this point in the history
Backport #6031 into `stable2407` from drewstone.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: drewstone <[email protected]>
Co-authored-by: Egor_P <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent c29cf6e commit 5405cdc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ use sp_runtime::traits::Header as HeaderT;
use sp_std::{
collections::{btree_map::BTreeMap, btree_set::BTreeSet},
prelude::*,
vec,
vec::Vec,
};

enum AuthorityVotes<Header: HeaderT> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ use sp_std::{
btree_set::BTreeSet,
},
prelude::*,
vec,
vec::Vec,
};

type SignedPrecommit<Header> = finality_grandpa::SignedPrecommit<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::justification::verification::{
};
use sp_consensus_grandpa::AuthorityId;
use sp_runtime::traits::Header as HeaderT;
use sp_std::{collections::btree_set::BTreeSet, prelude::*};
use sp_std::{collections::btree_set::BTreeSet, prelude::*, vec, vec::Vec};

// Verification callbacks for justification optimization.
struct JustificationOptimizer<Header: HeaderT> {
Expand Down
10 changes: 10 additions & 0 deletions prdoc/pr_6031.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: "Import vec to bridges/primitives/header-chain"

doc:
- audience: Runtime Dev
description: |
Add the `vec` dependency to these files to resolve compiler errors.

crates:
- name: bp-header-chain
bump: patch

0 comments on commit 5405cdc

Please sign in to comment.