Skip to content

Commit

Permalink
Updated query in Explorer.Chain to filter out pending block operation…
Browse files Browse the repository at this point in the history
…s with specific block numbers
  • Loading branch information
DenSmolonski committed Jul 1, 2024
1 parent ec83aff commit 27fb6fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/explorer/lib/explorer/chain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,8 @@ defmodule Explorer.Chain do
query =
from(
po in PendingBlockOperation,
where: not is_nil(po.block_number) and po.block_number < 13800000 or po.block_number > 28000000, # temp solution avoid spamming blocks
where: not is_nil(po.block_number) and po.block_number > 55000000, # temp test
# where: not is_nil(po.block_number) and po.block_number < 13800000 or po.block_number > 28000000, # temp solution avoid spamming blocks
select: po.block_number,
order_by: [desc: po.block_number]
)
Expand Down

0 comments on commit 27fb6fb

Please sign in to comment.