Skip to content

Commit 39a1c9e

Browse files
committed
fix: env var should only be used to enable test chainstate
1 parent 39f4fb6 commit 39a1c9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testnet/stacks-node/src/node.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ impl Node {
184184
pub fn new(config: Config, boot_block_exec: Box<dyn FnOnce(&mut ClarityTx) -> ()>) -> Self {
185185
let use_test_genesis_data = if config.burnchain.mode == "mocknet" {
186186
// When running in mocknet mode allow the small test genesis chainstate data to be enabled.
187-
env::var("BLOCKSTACK_USE_TEST_GENESIS_CHAINSTATE") == Ok("1".to_string())
187+
if env::var("BLOCKSTACK_USE_TEST_GENESIS_CHAINSTATE") == Ok("1".to_string()) {
188+
true
189+
} else {
190+
USE_TEST_GENESIS_CHAINSTATE
191+
}
188192
} else {
189193
USE_TEST_GENESIS_CHAINSTATE
190194
};

0 commit comments

Comments
 (0)