Skip to content

feat: carry a registration through the wallet buy path - #27

Open
salindne wants to merge 7 commits into
mainfrom
feat/wallet-buy-registered-synchronizer
Open

feat: carry a registration through the wallet buy path#27
salindne wants to merge 7 commits into
mainfrom
feat/wallet-buy-registered-synchronizer

Conversation

@salindne

@salindne salindne commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Refs ChainSafe/canton-extending-mainnet#39

Summary: CO_BuyMemberTraffic gains an optional registration and forwards it to AmuletRules_BuyMemberTraffic, so the validator top-up path can buy traffic for a registered synchronizer. Daml half only, so canton-network#39 stays open; producers pass None until the Scala half lands in its own PR.

Verified: reverting the forward at Install.daml:198 to None fails the new test.

Appends optRegisteredSynchronizer to CO_BuyMemberTraffic and forwards it to
AmuletRules_BuyMemberTraffic. Producers pass None until the Scala half lands.

Rides splice-wallet 0.1.24, which is built but on no release line. Appending a
trailing Optional to a constructor of this variant at an unchanged package
version follows 044079a.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
Drops the synchronizerId and migrationId assertions and the header comment. An
unregistered synchronizer id fails the buy outright, so the test cannot reach
those assertions with a mismatch, and the surviving operator check is what binds
the forwarding: reverting Install.daml:198 to = None still fails the test.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
@salindne
salindne marked this pull request as ready for review September 3, 2026 18:52
Trimming the test changed the splice-wallet-test DAR, and splitwell-test takes
it as a data-dependency, so both hashes move.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
@salindne
salindne requested a review from sadiq1971 September 3, 2026 21:12
Say what is surprising about the code rather than why the change is right.
The reasoning is in the commit messages and the PR.

Editing Install.daml moves the splice-wallet DAR hash, and splice-wallet-test
and splitwell-test data-depend on it, so the lockfile follows.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
rename.sh no_illegal_daml_references bans "global" in Daml code. The comment
this replaced already used the sanctioned term.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
Editing Install.daml moves the splice-wallet package hash. dars.lock and
DarResources.scala both pin it, and only the first was regenerated, so every
test that resolves a DAR through DarResources failed.

Signed-off-by: Sebastian Lindner <33971232+salindne@users.noreply.github.com>
@salindne salindne self-assigned this Sep 4, 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