Skip to content

Commit

Permalink
Merge pull request #4285 from EthanYuan/fix-indexer
Browse files Browse the repository at this point in the history
fix(indexer): The end in `script_len_range` parameter of `IndexerSearchKeyFilter` is not inclusive
  • Loading branch information
quake authored Dec 29, 2023
2 parents 61ba4a9 + 28a409d commit 72abd78
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 72abd78

Please sign in to comment.