Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvank committed Jun 14, 2023
1 parent eea5fc1 commit 189c025
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bazuka"
version = "0.19.13"
version = "0.19.14"
authors = ["El Geuse <[email protected]>"]
edition = "2021"

Expand Down
6 changes: 5 additions & 1 deletion src/blockchain/ops/apply_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ pub fn apply_block<K: KvStore>(
}

// NOTE: Testnet specific code
let num_update_batches = if curr_height > 10000 { 1 } else { 4 };
let num_update_batches = if curr_height <= 10000 {
1
} else {
chain.config.mpn_config.mpn_num_update_batches
};

if !is_genesis
&& (num_mpn_function_calls < num_update_batches
Expand Down

0 comments on commit 189c025

Please sign in to comment.