Skip to content

Made TimedBlockTrigger use independent timers - #417

Merged
rpanic merged 2 commits into
developfrom
feature/independent-trigger-timers
Feb 5, 2026
Merged

rpanic merged 2 commits into
developfrom
feature/independent-trigger-timers

Conversation

@rpanic

@rpanic rpanic commented Feb 2, 2026

Copy link
Copy Markdown
Member

Closes #403

@4ytuncs
4ytuncs self-requested a review February 5, 2026 08:00
const numUserTxs =
await this.transactionStorage.countPendingUserTransactions();

const messages = await this.getMandatoryTxs();

@4ytuncs 4ytuncs Feb 5, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think if we also had a method like getMandatoryTxCount instead of getMandatoryTxs().length would be beneficial?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that, but the thing is that we have no real way of only evaluating the length. We always need to fetch, and internally, the IncomeMessagesService (on which this call is built upon) internally already caches the fetched messages, so the performance impact is very low - though it'd make the code nicer (but hide implementation nuances)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be a subject of further code refactoring.

@rpanic
rpanic merged commit be9c4b3 into develop Feb 5, 2026
5 checks passed
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.

Adjust TimedBlockTrigger to do different stages in parallel

2 participants