Add write_ssz_files feature to beacon_chain crate

This commit is contained in:
Paul Hauner 2019-09-23 22:20:47 +10:00
parent 8ceb2e3d95
commit b316086be0
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@ version = "0.1.0"
authors = ["Paul Hauner <paul@paulhauner.com>", "Age Manning <Age@AgeManning.com>"]
edition = "2018"
[features]
write_ssz_files = [] # Writes debugging .ssz files to /tmp during block processing.
[dependencies]
eth2_config = { path = "../../eth2/utils/eth2_config" }
merkle_proof = { path = "../../eth2/utils/merkle_proof" }

View File

@ -42,7 +42,7 @@ pub const GRAFFITI: &str = "sigp/lighthouse-0.0.0-prerelease";
/// files in the temp directory.
///
/// Only useful for testing.
const WRITE_BLOCK_PROCESSING_SSZ: bool = true;
const WRITE_BLOCK_PROCESSING_SSZ: bool = cfg!(feature = "write_ssz_files");
#[derive(Debug, PartialEq)]
pub enum BlockProcessingOutcome {