Add decoding/encoding for extended gossip topics. Correct logging CLI

This commit is contained in:
Age Manning
2019-08-08 14:58:33 +10:00
parent 80f15f5d70
commit 5a74239ebc
4 changed files with 79 additions and 30 deletions

View File

@@ -7,6 +7,8 @@ use std::path::PathBuf;
use std::time::Duration;
/// The gossipsub topic names.
// These constants form a topic name of the form /TOPIC_PREFIX/TOPIC/ENCODING_POSTFIX
// For example /eth2/beacon_block/ssz
pub const TOPIC_PREFIX: &str = "eth2";
pub const TOPIC_ENCODING_POSTFIX: &str = "ssz";
pub const BEACON_BLOCK_TOPIC: &str = "beacon_block";