You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In task_fetcher.rs, program try to fetch one block which has been proved but not been committed by following query:
selectt.block_idas block_id,
t.public_inputas public_input,
t.proofas proof,
l2b.raw_public_dataas public_data
from
task t
inner join l2block l2b ont.block_id=l2b.block_idwheret.block_id< coalesce(
(
select
block_id
from
task
where
status <>'proved'order by
block_id
limit1
), 0
)
andt.block_id> $1andt.status='proved'-- defense filterandl2b.status='uncommited'order byt.block_idlimit1
Inside this query the coalesce function would return a block id which has not been proved yet, or 0. However, if all of the blocks have been proved while some of them are not committed yet, coalesce would just return 0 and no uncommitted block would be selected.
We should update the secondary item in coalesce from 0 to 9223372036854775807 (the max bigint), or consider just remove this constraint because the other condition seems enough for us to pick.
The text was updated successfully, but these errors were encountered:
In task_fetcher.rs, program try to fetch one block which has been proved but not been committed by following query:
Inside this query the coalesce function would return a block id which has not been proved yet, or 0. However, if all of the blocks have been proved while some of them are not committed yet, coalesce would just return 0 and no uncommitted block would be selected.
We should update the secondary item in coalesce from 0 to 9223372036854775807 (the max bigint), or consider just remove this constraint because the other condition seems enough for us to pick.
The text was updated successfully, but these errors were encountered: