BEEFY and GRANDPA protocol names should use full genesis hash (#10974)

std::fmt::Display shows formats as reduced hash (e.g. 0xb0a8…dafe)

Use hex::encode to format full hash.

Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
Adrian Catangiu
2022-03-04 18:22:52 +02:00
committed by GitHub
parent 6cfdbe5caa
commit d41838076e
6 changed files with 103 additions and 6 deletions
+4
View File
@@ -484,6 +484,7 @@ dependencies = [
"beefy-primitives",
"fnv",
"futures 0.3.19",
"hex",
"log 0.4.14",
"parity-scale-codec",
"parking_lot 0.12.0",
@@ -494,6 +495,7 @@ dependencies = [
"sc-network-gossip",
"sc-network-test",
"sc-utils",
"serde",
"sp-api",
"sp-application-crypto",
"sp-arithmetic",
@@ -8525,6 +8527,7 @@ dependencies = [
"fork-tree",
"futures 0.3.19",
"futures-timer",
"hex",
"log 0.4.14",
"parity-scale-codec",
"parking_lot 0.12.0",
@@ -8539,6 +8542,7 @@ dependencies = [
"sc-network-test",
"sc-telemetry",
"sc-utils",
"serde",
"serde_json",
"sp-api",
"sp-application-crypto",