Skip to content

Commit

Permalink
Merge branch 'dev' into fk/pool-get-all-blocks-in-order
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush authored Apr 17, 2020
2 parents 3a67654 + be0e478 commit e82b761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/models/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pub fn account_tree_depth() -> usize {

unsafe {
if ACCOUNT_TREE_DEPTH_VALUE == 0 {
let value: &'static str = env!("ACCOUNT_TREE_DEPTH");
let value: &'static str = option_env!("ACCOUNT_TREE_DEPTH")
.expect("ACCOUNT_TREE_DEPTH variable was not set during compilation. \
Make sure that ACCOUNT_TREE_DEPTH is set in `dev.env` file and recompile the project");
ACCOUNT_TREE_DEPTH_VALUE =
usize::from_str(value).expect("account tree depth value is invalid");
let runtime_value = env::var("ACCOUNT_TREE_DEPTH").expect("ACCOUNT_TREE_DEPTH missing");
Expand Down

0 comments on commit e82b761

Please sign in to comment.