Skip to content

Commit

Permalink
[skip audit] Fix a bug: reloading the system configuration at the wro…
Browse files Browse the repository at this point in the history
…ng height when synchronizing blocks.
  • Loading branch information
yangby-cryptape committed Jan 30, 2019
1 parent 301c19e commit e60a088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cita-executor/core/src/libexecutor/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ impl Executor {
let now = Instant::now();
let current_state_root = self.current_state_root();
let last_hashes = self.last_hashes();
let conf = self.get_sys_config(self.get_max_height());
let conf = self.get_sys_config(self.get_current_height());
let parent_hash = *block.parent_hash();
let check_options = CheckOptions {
permission: conf.check_permission,
Expand Down Expand Up @@ -969,7 +969,7 @@ impl Executor {
let now = Instant::now();
let current_state_root = self.current_state_root();
let last_hashes = self.last_hashes();
let conf = self.get_sys_config(self.get_max_height());
let conf = self.get_sys_config(self.get_current_height());
let chain_owner = conf.chain_owner;
let parent_hash = *block.parent_hash();
let check_options = CheckOptions {
Expand Down

0 comments on commit e60a088

Please sign in to comment.