Skip to content

Commit

Permalink
fix(indexer): The end in script_len_range parameter of `IndexerSear…
Browse files Browse the repository at this point in the history
…chKeyFilter` is not inclusive.
  • Loading branch information
EthanYuan committed Dec 29, 2023
1 parent 61ba4a9 commit 28a409d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/indexer/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl IndexerHandle {
match filter_script_type {
IndexerScriptType::Lock => {
let script_len = extract_raw_data(&output.lock()).len();
if script_len < r0 || script_len > r1 {
if script_len < r0 || script_len >= r1 {
return None;
}
}
Expand All @@ -378,7 +378,7 @@ impl IndexerHandle {
.to_opt()
.map(|script| extract_raw_data(&script).len())
.unwrap_or_default();
if script_len < r0 || script_len > r1 {
if script_len < r0 || script_len >= r1 {
return None;
}
}
Expand Down

0 comments on commit 28a409d

Please sign in to comment.