fix(tbtc): route wallet lifecycle by signing scheme#4145
Merged
mswilkison merged 1 commit intoJul 12, 2026
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 11, 2026
mswilkison
force-pushed
the
fix/pr3866-dkg-review
branch
from
July 11, 2026 20:03
52b8ee5 to
5abaa92
Compare
mswilkison
force-pushed
the
fix/pr3866-registry-review
branch
2 times, most recently
from
July 12, 2026 20:12
d0401b1 to
b674361
Compare
mswilkison
force-pushed
the
fix/pr3866-registry-review
branch
from
July 12, 2026 22:01
b674361 to
1294939
Compare
mswilkison
added a commit
that referenced
this pull request
Jul 12, 2026
Stack 1 of 3 on top of #3866. Followed by #4145 and #4146. Addresses the FROST DKG configuration and coordinator findings from the latest review: - load `groupSize`, `activeThreshold`, and `groupThreshold` from `FrostDkgValidator` independently of the legacy ECDSA validator - use the FROST parameters for DKG execution, result signing, readiness, signer registration, recovery lookback, wallet signing, and inactivity executors - replace eager seven-day FROST event deduplication with atomic in-progress leases that are released after transient failures and completed only after work is handled or safely scheduled - when a stale DkgStarted replay resolves a newer event, complete the stale lease and acquire a fresh lease for the newer seed before membership or DKG execution - guard nil native DKG parameters and treat build-level native unavailability as terminal for the current process while keeping runtime-changeable gates retryable - stop result approval immediately when the parent context is canceled Startup now intentionally fails if `FrostWalletRegistry` is enabled without a configured `FrostDkgValidator`, because the node cannot safely infer the independent FROST thresholds. Verification: - `go test ./pkg/tbtc ./pkg/chain/ethereum` - focused default and `frost_native` coordinator/parameter tests - focused race tests and `go vet` - stale-to-latest seed regressions covering concurrent, completed, and transient-failure cases The next stack layer, #4145, routes heartbeat, inactivity, and closure handling through the wallet's scheme-specific registry.
Base automatically changed from
fix/pr3866-dkg-review
to
feat/frost-schnorr-migration-scaffold
July 12, 2026 22:23
mswilkison
merged commit Jul 12, 2026
26220a8
into
feat/frost-schnorr-migration-scaffold
18 checks passed
mswilkison
added a commit
that referenced
this pull request
Jul 12, 2026
## Stack 3 of 3. Depends on #4145 and targets `fix/pr3866-registry-review`. ## What changed - merge legacy and V2 wallet-registration history and deduplicate compatibility events without synthesizing zero legacy wallet IDs - estimate moving-funds fees from the resolved source and target scripts - discover native P2TR deposit sweeps through Taproot reveals and canonical wallet scripts, with an explicit error for unsupported history backends - preserve the Taproot deposit marker through sweep proposal construction - estimate P2TR sweep fees with the actual main-UTXO presence instead of assuming one exists ## Verification - `go test ./pkg/bitcoin ./pkg/maintainer/spv ./pkg/tbtcpg ./pkg/tbtc ./pkg/chain/ethereum` - `go test -tags=frost_native ./pkg/tbtc ./pkg/chain/ethereum` - independent focused review and tests for registration-history compatibility, P2TR discovery, and sweep fee shapes
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.
Stack
2 of 3. Depends on #4144, is followed by #4146, and targets
fix/pr3866-dkg-review.What changed
Verification
go test ./pkg/tbtc ./pkg/chain/ethereumgo test -tags=frost_native ./pkg/tbtc ./pkg/chain/ethereum-racetests for wallet-closure deduplication and FROST inactivity event delivery