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
@@ -19,6 +19,7 @@ dyn-clone = "1.0"
fork-tree = { version = "3.0.0", path = "../../utils/fork-tree" }
futures = "0.3.19"
futures-timer = "3.0.1"
hex = "0.4.2"
log = "0.4.8"
parking_lot = "0.12.0"
rand = "0.8.4"
@@ -58,5 +59,7 @@ sc-network-test = { version = "0.8.0", path = "../network/test" }
sp-keyring = { version = "6.0.0", path = "../../primitives/keyring" }
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
serde = "1.0.136"
tokio = "1.15"
tempfile = "3.1.0"