Skip to content

Collect batch fees into the builder wallet - #2635

Draft
Mirko-von-Leipzig wants to merge 4 commits into
mirko/batch-fees-pass-through-txfrom
mirko/batch-fees-collection
Draft

Mirko-von-Leipzig wants to merge 4 commits into
mirko/batch-fees-pass-through-txfrom
mirko/batch-fees-collection

Conversation

@Mirko-von-Leipzig

@Mirko-von-Leipzig Mirko-von-Leipzig commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

The sequencer runs batch fee collection as an independent task. Each collection reads the public wallet and its unspent P2ID notes from the store, then submits an ordinary sealed transaction through the in-process RPC to consume those notes into the wallet.

The collection interval defaults to five minutes and is configurable through --batch.builder.wallet-sync-interval. Transactions respect the protocol input-note limit and include a fee note even when fees are zero.

Each transaction expires after 30 blocks. The task waits for expiration before another collection, including when submission reports an error. Each collection reads fresh chain state, so no separate account database is required.

Transaction execution runs on a blocking worker. Proving is delegated to the remote transaction prover configured with --tx-prover.url.

Part of #2501.

Changelog

[[entry]]
scope       = "node"
impact      = "added"
description = "Periodically collect batch-building fee notes into the public builder wallet."

@Mirko-von-Leipzig
Mirko-von-Leipzig added this pull request to stack #2569 September 16, 2026 08:31
@Mirko-von-Leipzig
Mirko-von-Leipzig force-pushed the mirko/batch-fees-collection branch from 8895a0c to 9107378 Compare September 16, 2026 13:07
@Mirko-von-Leipzig Mirko-von-Leipzig changed the title feat(sequencer): collect batch fees into the builder wallet Collect batch fees into the builder wallet Sep 16, 2026
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.

1 participant