Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a87aa29

Browse files
authored
Bump grandpa to 0.16.2 (#13622)
1 parent a2d4f7d commit a87aa29

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

Cargo.lock

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

client/consensus/grandpa/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ahash = "0.8.2"
1818
array-bytes = "4.1"
1919
async-trait = "0.1.57"
2020
dyn-clone = "1.0"
21-
finality-grandpa = { version = "0.16.1", features = ["derive-codec"] }
21+
finality-grandpa = { version = "0.16.2", features = ["derive-codec"] }
2222
futures = "0.3.21"
2323
futures-timer = "3.0.1"
2424
log = "0.4.17"
@@ -50,7 +50,7 @@ sp-runtime = { version = "7.0.0", path = "../../../primitives/runtime" }
5050

5151
[dev-dependencies]
5252
assert_matches = "1.3.0"
53-
finality-grandpa = { version = "0.16.1", features = ["derive-codec", "test-helpers"] }
53+
finality-grandpa = { version = "0.16.2", features = ["derive-codec", "test-helpers"] }
5454
serde = "1.0.136"
5555
tokio = "1.22.0"
5656
sc-network = { version = "0.10.0-dev", path = "../../network" }

client/consensus/grandpa/rpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
homepage = "https://substrate.io"
1111

1212
[dependencies]
13-
finality-grandpa = { version = "0.16.1", features = ["derive-codec"] }
13+
finality-grandpa = { version = "0.16.2", features = ["derive-codec"] }
1414
futures = "0.3.16"
1515
jsonrpsee = { version = "0.16.2", features = ["client-core", "server", "macros"] }
1616
log = "0.4.8"

frame/grandpa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sp-staking = { version = "4.0.0-dev", default-features = false, path = "../../pr
3131
sp-std = { version = "5.0.0", default-features = false, path = "../../primitives/std" }
3232

3333
[dev-dependencies]
34-
grandpa = { package = "finality-grandpa", version = "0.16.1", features = ["derive-codec"] }
34+
grandpa = { package = "finality-grandpa", version = "0.16.2", features = ["derive-codec"] }
3535
frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" }
3636
frame-election-provider-support = { version = "4.0.0-dev", path = "../election-provider-support" }
3737
pallet-balances = { version = "4.0.0-dev", path = "../balances" }

primitives/consensus/grandpa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1515

1616
[dependencies]
1717
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = ["derive"] }
18-
grandpa = { package = "finality-grandpa", version = "0.16.1", default-features = false, features = ["derive-codec"] }
18+
grandpa = { package = "finality-grandpa", version = "0.16.2", default-features = false, features = ["derive-codec"] }
1919
log = { version = "0.4.17", default-features = false }
2020
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
2121
serde = { version = "1.0.136", features = ["derive"], optional = true }

primitives/consensus/grandpa/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,12 @@ impl<N: Codec> ConsensusLog<N> {
234234
/// GRANDPA happens when a voter votes on the same round (either at prevote or
235235
/// precommit stage) for different blocks. Proving is achieved by collecting the
236236
/// signed messages of conflicting votes.
237-
#[derive(Clone, Debug, Decode, Encode, PartialEq, TypeInfo)]
237+
#[derive(Clone, Debug, Decode, Encode, PartialEq, Eq, TypeInfo)]
238238
pub struct EquivocationProof<H, N> {
239239
set_id: SetId,
240240
equivocation: Equivocation<H, N>,
241241
}
242242

243-
// Don't bother the grandpa crate...
244-
impl<H: PartialEq, N: PartialEq> Eq for EquivocationProof<H, N> {}
245-
246243
impl<H, N> EquivocationProof<H, N> {
247244
/// Create a new `EquivocationProof` for the given set id and using the
248245
/// given equivocation as proof.
@@ -271,7 +268,7 @@ impl<H, N> EquivocationProof<H, N> {
271268

272269
/// Wrapper object for GRANDPA equivocation proofs, useful for unifying prevote
273270
/// and precommit equivocations under a common type.
274-
#[derive(Clone, Debug, Decode, Encode, PartialEq, TypeInfo)]
271+
#[derive(Clone, Debug, Decode, Encode, PartialEq, Eq, TypeInfo)]
275272
pub enum Equivocation<H, N> {
276273
/// Proof of equivocation at prevote stage.
277274
Prevote(grandpa::Equivocation<AuthorityId, grandpa::Prevote<H, N>, AuthoritySignature>),

0 commit comments

Comments
 (0)