Skip to content

chore: re-add execution of network transactions and add expiration#2148

Merged
Mirko-von-Leipzig merged 6 commits into
nextfrom
santiagopittella-ntx-builder-block-sub-phase-3
May 30, 2026
Merged

chore: re-add execution of network transactions and add expiration#2148
Mirko-von-Leipzig merged 6 commits into
nextfrom
santiagopittella-ntx-builder-block-sub-phase-3

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

Third and final PR of the ntx-builder block-subscription refactor (follows #2120 and #2144). This PR reconnects the execution path so the ntx-builder actually builds and submits network transactions again.

After catch-up, an account actor with pending notes selects a candidate, executes/proves/submits it, then enters a WaitForBlock state and detects landing purely from local state. If the transaction doesn't land within tx_expiration_delta blocks, the actor resubmits.

Submitted transactions also carry an on-chain expiration: a pre-compiled transaction script (update_expiration_block_delta) is injected via TransactionArgs, so a stale tx is rejected by the chain rather than landing late.

@SantiagoPittella SantiagoPittella force-pushed the santiagopittella-ntx-builder-block-sub-phase-3 branch from 8b4366b to b446bbd Compare May 27, 2026 16:38
Comment thread bin/ntx-builder/src/commands/mod.rs Outdated
Comment thread bin/ntx-builder/src/db/models/queries/notes.rs Outdated
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Some suggestions, but looks good otherwise.

Comment thread bin/ntx-builder/src/db/migrations/001_initial.sql Outdated
Comment thread bin/ntx-builder/src/db/models/queries/accounts.rs Outdated
Comment thread bin/ntx-builder/src/actor/mod.rs Outdated
@Mirko-von-Leipzig Mirko-von-Leipzig enabled auto-merge (squash) May 30, 2026 07:15
@Mirko-von-Leipzig Mirko-von-Leipzig merged commit e9606c9 into next May 30, 2026
20 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the santiagopittella-ntx-builder-block-sub-phase-3 branch May 30, 2026 07:17
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