Relax types on DigestItemRef, such that byte slices can be used in addition to vector references (#10536)

* Relax types on `DigestItemRef`, such that byte slices can be used in addition to vector references

* Apply clippy suggestions
This commit is contained in:
Nazar Mokrynskyi
2022-01-20 12:02:22 +02:00
committed by GitHub
parent 1344e43d2d
commit 6b60c3dbff
159 changed files with 164 additions and 164 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ sp-core = { version = "4.1.0-dev", path = "../../../primitives/core" }
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
sc-consensus-slots = { version = "0.10.0-dev", path = "../slots" }
sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
sp-runtime = { version = "4.0.0", path = "../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
sp-keystore = { version = "0.10.0", path = "../../../primitives/keystore" }
sc-telemetry = { version = "4.0.0-dev", path = "../../telemetry" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../../utils/prometheus", version = "0.10.0-dev" }
+1 -1
View File
@@ -40,7 +40,7 @@ sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/c
sp-consensus-slots = { version = "0.10.0-dev", path = "../../../primitives/consensus/slots" }
sp-consensus-vrf = { version = "0.10.0-dev", path = "../../../primitives/consensus/vrf" }
sc-consensus-slots = { version = "0.10.0-dev", path = "../slots" }
sp-runtime = { version = "4.0.0", path = "../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
fork-tree = { version = "3.0.0", path = "../../../utils/fork-tree" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../../utils/prometheus", version = "0.10.0-dev" }
futures = "0.3.9"
@@ -21,7 +21,7 @@ jsonrpc-derive = "18.0.0"
sp-consensus-babe = { version = "0.10.0-dev", path = "../../../../primitives/consensus/babe" }
serde = { version = "1.0.132", features=["derive"] }
sp-blockchain = { version = "4.0.0-dev", path = "../../../../primitives/blockchain" }
sp-runtime = { version = "4.0.0", path = "../../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../../primitives/runtime" }
sc-consensus-epochs = { version = "0.10.0-dev", path = "../../epochs" }
futures = "0.3.16"
derive_more = "0.99.16"
+1 -1
View File
@@ -23,7 +23,7 @@ sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain"
sp-core = { path = "../../../primitives/core", version = "4.1.0-dev" }
sp-consensus = { path = "../../../primitives/consensus/common", version = "0.10.0-dev" }
sp-state-machine = { version = "0.10.0", path = "../../../primitives/state-machine" }
sp-runtime = { version = "4.0.0", path = "../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
sc-utils = { version = "4.0.0-dev", path = "../../utils" }
sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
parking_lot = "0.11.2"
+1 -1
View File
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] }
fork-tree = { version = "3.0.0", path = "../../../utils/fork-tree" }
sp-runtime = { path = "../../../primitives/runtime" , version = "4.0.0"}
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
sc-client-api = { path = "../../api" , version = "4.0.0-dev"}
sc-consensus = { path = "../common" , version = "0.10.0-dev"}
@@ -37,7 +37,7 @@ sp-blockchain = { path = "../../../primitives/blockchain", version = "4.0.0-dev"
sp-consensus = { path = "../../../primitives/consensus/common", version = "0.10.0-dev" }
sp-consensus-slots = { path = "../../../primitives/consensus/slots", version = "0.10.0-dev" }
sp-inherents = { path = "../../../primitives/inherents", version = "4.0.0-dev" }
sp-runtime = { path = "../../../primitives/runtime", version = "4.0.0" }
sp-runtime = { path = "../../../primitives/runtime", version = "4.1.0-dev" }
sp-core = { path = "../../../primitives/core", version = "4.1.0-dev" }
sp-keystore = { path = "../../../primitives/keystore", version = "0.10.0" }
sp-api = { path = "../../../primitives/api", version = "4.0.0-dev" }
+1 -1
View File
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] }
sp-core = { version = "4.1.0-dev", path = "../../../primitives/core" }
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
sp-runtime = { version = "4.0.0", path = "../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
sc-client-api = { version = "4.0.0-dev", path = "../../api" }
sp-block-builder = { version = "4.0.0-dev", path = "../../../primitives/block-builder" }
+1 -1
View File
@@ -21,7 +21,7 @@ sp-arithmetic = { version = "4.0.0", path = "../../../primitives/arithmetic" }
sp-blockchain = { version = "4.0.0-dev", path = "../../../primitives/blockchain" }
sc-consensus = { version = "0.10.0-dev", path = "../../../client/consensus/common" }
sp-consensus-slots = { version = "0.10.0-dev", path = "../../../primitives/consensus/slots" }
sp-runtime = { version = "4.0.0", path = "../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
sp-state-machine = { version = "0.10.0", path = "../../../primitives/state-machine" }
sc-telemetry = { version = "4.0.0-dev", path = "../../telemetry" }
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
+1 -1
View File
@@ -14,6 +14,6 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sc-client-api = { version = "4.0.0-dev", path = "../../api" }
sp-runtime = { version = "4.0.0", path = "../../../primitives/runtime" }
sp-runtime = { version = "4.1.0-dev", path = "../../../primitives/runtime" }
sp-authorship = { version = "4.0.0-dev", path = "../../../primitives/authorship" }
thiserror = "1.0.30"