Repository navigation
Conversation
The spark-sdk runs a Spark regtest network locally (regtest/local/), with its own operators, SSP, LNURL and data-sync services and a mempool chain API. When SPARK_CONFIG_PATH names the spark-config.json it writes, the dev server hands the file to the app, which reads it with parseSparkConfig and connects regtest to the environment's services. parseSparkConfig needs an SDK release after 0.26.0. The environment serves the esplora and mempool routes from one chain API, so the exit's separate mempool URL goes and regtest defaults to that API. The passkey migration connects through connectSdk as well, so it reads the same chain.
The suite funded each wallet through local-regtest's /fund endpoint, with whole deposit leaves. It now deposits from the environment's Bitcoin node and lets the wallet claim through the SSP, and skips unless the environment mines only on request. A wallet's refunds then mature apart, each transfer of a leaf taking 100 blocks off its refund's timelock, so each pass mines to the nearest timelock rather than a single block. The exit fee check reads the quoted fee, which the archive records since #466.
The spark-sdk's local environment replaces it, and the README says how to run Glow on it.
USDB exists on mainnet alone, and the SDK rejects a stable balance token from another network at connect time from spark-sdk 7afca7181 on, which aborts the whole connection on regtest. The cross-chain config is already set the same way.
The README and the exit suite rely on three changes in breez/spark-sdk#1185, on its jssdwt-ssp-additions branch: the environment's block-interval command, pool trees whose nodes spend without a timelock, and the SSP syncing its pool leaves with the coordinator. Glow also needs an SDK newer than 0.26.0 for parseSparkConfig, so the README builds the JavaScript package from that branch and links it. Drop this commit once that pull request is on main and in a release.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Glow can run regtest on the spark-sdk's local Spark environment (breez/spark-sdk#1152), which replaces
local-regtest/. PointSPARK_CONFIG_PATHat thespark-config.jsonthe environment writes and the dev server connects regtest to it; the README has the steps. The unilateral exit e2e suite runs on it too.USDB's stable balance config is now set on mainnet only: from breez/spark-sdk@7afca7181 the SDK rejects it on other networks at connect time.
Draft until
temp:) points the README at that branch and gets dropped then.parseSparkConfig. Until then Type Check and Unit Tests fail in CI.