Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp committed Mar 4, 2020
1 parent cbfaced commit 25105bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/src/txhashset/txhashset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ impl TxHashSet {
};
let mut kernel_count = 0;
let mut current_header = cutoff_header;
for pos in cutoff_pos..=self.kernel_pmmr_h.last_pos {
for pos in cutoff_pos..(self.kernel_pmmr_h.last_pos + 1) {
while pos > current_header.kernel_mmr_size {
let next_hash = header_pmmr.get_header_hash_by_height(current_header.height + 1)?;
current_header = batch.get_block_header(&next_hash)?;
Expand Down

0 comments on commit 25105bf

Please sign in to comment.