Skip to content

Commit 599ac48

Browse files
committed
Fix signer get_up_to_block_number_condition for block range root
It diverged from the aggregator, instead of checking the end with a exclusive '<' it checked it with an inclusive '<=', changing the output.
1 parent 32c8363 commit 599ac48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mithril-signer/src/database/provider/block_range_root/get_block_range_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<'client> GetBlockRangeRootProvider<'client> {
1818
}
1919

2020
pub fn get_up_to_block_number_condition(&self, block_number: BlockNumber) -> WhereCondition {
21-
WhereCondition::new("end <= ?*", vec![Value::Integer(block_number as i64)])
21+
WhereCondition::new("end < ?*", vec![Value::Integer(block_number as i64)])
2222
}
2323
}
2424

0 commit comments

Comments
 (0)