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
+2
View File
@@ -10,6 +10,7 @@ description = "BEEFY Client gadget for substrate"
[dependencies]
fnv = "1.0.6"
futures = "0.3"
hex = "0.4.2"
log = "0.4"
parking_lot = "0.12.0"
thiserror = "1.0"
@@ -39,4 +40,5 @@ beefy-primitives = { version = "4.0.0-dev", path = "../../primitives/beefy" }
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
sc-network-test = { version = "0.8.0", path = "../network/test" }
serde = "1.0.136"
strum = { version = "0.23", features = ["derive"] }