Skip to content

Commit 5b342f3

Browse files
authored
Merge pull request #1205 from input-output-hk/fix-stake-pool-blocks-upper-bound
fix stake pool blocks query off by one
2 parents f2925b4 + 04eccc2 commit 5b342f3

File tree

1 file changed

+2
-0
lines changed
  • jormungandr/src/explorer/graphql

1 file changed

+2
-0
lines changed

jormungandr/src/explorer/graphql/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,8 @@ impl Pool {
854854
lower_bound: 0u32,
855855
upper_bound: blocks
856856
.len()
857+
.checked_sub(1)
858+
.unwrap()
857859
.try_into()
858860
.expect("Tried to paginate more than 2^32 blocks"),
859861
})

0 commit comments

Comments
 (0)