Skip to content

Conversation

devbugging
Copy link
Collaborator

Currently, if by some chance a critical bug is reached within the process() function, the whole operation panics, and it will continue to panic on the next invocation, which would halt all transaction scheduling.

This is a problem because even though a critical issue was detected, we will halt execution of transactions that don't face this critical issue. Instead, we can emit a critical issue event, which can be inspected and fixed while still preserving transaction scheduling functionality.

We need to set alerts to such events being emitted.

Furthermore, this improves issues coming from scheduling. Instead of panicking over a critical issue during schedule() invocation, which would only prevent scheduling that single transaction (which is not as bad as the above example), the panic would still only be received by the user and likely ignored, even though the system has a critical bug. Emitting an event instead would allow us to monitor for such critical issues and fix them.

@joshuahannan
Copy link
Member

I just merged #546 so you'll need to update this branch with those changes and resolve conflicts first. Also, make sure you run make test

@joshuahannan joshuahannan changed the base branch from master to josh/pre-forte-updates October 20, 2025 13:59
@joshuahannan joshuahannan merged commit f1decb4 into onflow:josh/pre-forte-updates Oct 20, 2025
1 check failed
joshuahannan added a commit that referenced this pull request Oct 20, 2025
* change panics to events (#549)

Co-authored-by: Joshua Hannan <[email protected]>

* lowers data size

---------

Co-authored-by: Greg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants