Skip to content

Nodeguard upgrade, swaps in progress revamp, #85

Merged
Jossec101 merged 13 commits intomainfrom
fix-swaps-ng-dest-limit
Sep 18, 2025
Merged

Nodeguard upgrade, swaps in progress revamp, #85
Jossec101 merged 13 commits intomainfrom
fix-swaps-ng-dest-limit

Conversation

@Jossec101
Copy link
Contributor

@Jossec101 Jossec101 commented Sep 18, 2025

Nodeguard upgraded withdrawals for swaps in to trigger, I've also added a rate-limited instead of 1 at-at-time swap lock cause this led to issues in the past as loop stuck on those swaps, now it's time-based lock which will unlock

I've also removed per channel swap, let's try if this approach like autoloop that makes liquidator great again.

- Upgrade Go version from 1.20 to 1.24
- Pin LND to v0.19.0-beta with replace directive
- Update Loop from v0.27.1-beta to v0.31.2-beta with pinning
- Upgrade OpenTelemetry packages to v1.38.0
- Update gRPC to v1.64.1
- Add new dependencies for Docker testing and database migrations
- Update various indirect dependencies for compatibility
- Bump Go version from 1.24 to 1.25 in go.mod
- Regenerate lightning_rpc_mock.go with updated mockgen command
- Add GetDebugInfo method to MockLightningClient interface
- Remove deprecated streaming client mocks and swap client mocks
Add new command line flag for configuring swap lock timeout duration with default value of 30 minutes. This allows users to customize when swap locks automatically expire.
Add thread-safe locking system to prevent concurrent submarine and reverse swaps with configurable timeout periods and automatic lock expiration.
Remove releaseSubmarineSwapLock() and releaseReverseSwapLock() methods along with their usage in tests. Locks now only expire via timeout mechanism to prevent spam attacks. Updated test comments to clarify production behavior where manual release is not available.
@Jossec101 Jossec101 marked this pull request as ready for review September 18, 2025 10:13
@Jossec101 Jossec101 enabled auto-merge (squash) September 18, 2025 10:18
@Jossec101 Jossec101 merged commit ac825ab into main Sep 18, 2025
1 check passed
@Jossec101 Jossec101 deleted the fix-swaps-ng-dest-limit branch September 18, 2025 10:58
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