-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2195 from blockstack/next
Release `next` to `master`: non-consensus breaking
- Loading branch information
Showing
4 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
use stx_genesis::GenesisData; | ||
|
||
// Uses the full production genesis chainstate.txt data when compiled regularly, .e.g. `cargo build`. | ||
// Uses a small test chainstate.txt file when tests are ran regularly, .e.g. `cargo test`. | ||
// The production file can be used in tests by specifying the `prod-genesis-chainstate` feature | ||
// flag, .e.g. `cargo test --features prod-genesis-chainstate` | ||
|
||
#[cfg(any(not(test), feature = "prod-genesis-chainstate"))] | ||
lazy_static! { | ||
pub static ref GENESIS_DATA: GenesisData = GenesisData::new(false); | ||
} | ||
pub const USE_TEST_GENESIS_CHAINSTATE: bool = false; | ||
|
||
#[cfg(all(test, not(feature = "prod-genesis-chainstate")))] | ||
lazy_static! { | ||
pub static ref GENESIS_DATA: GenesisData = GenesisData::new(true); | ||
} | ||
pub const USE_TEST_GENESIS_CHAINSTATE: bool = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters