Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.7.0-rc.85 (Synonym Fork)
# 0.7.0-rc.86 (Synonym Fork)

## Bug Fixes

Expand Down Expand Up @@ -87,6 +87,7 @@

## Synonym Fork Additions

- Additional on-chain wallets (monitored address types and derived accounts) sync in the background on their own `additional_wallet_sync_interval_secs` interval, apart from the primary wallet, and over their own Electrum connection, so their sync no longer delays or times out the primary wallet's. Their pass reports `SyncCompleted` with the new `SyncType::AdditionalOnchainWallets`, while `SyncType::OnchainWallet` now covers the primary wallet only.
- Added `build_with_vss_store_and_lnurl_auth_key_domain`, which signs VSS LNURL-auth for a fixed key domain while calling the auth server on a subdomain of it, so wallets keep their VSS identity when the auth server moves to that subdomain.
- Accept incoming payments up to the full channel value, instead of 10% of it, on nodes that cannot announce channels (no node alias or listening addresses), for channels opened after the update.
- Expose the exact prepared transaction fee so applications can validate the approved total before broadcast.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude = ["bindings/uniffi-bindgen"]

[package]
name = "ldk-node"
version = "0.7.0-rc.85"
version = "0.7.0-rc.86"
authors = ["Elias Rohrer <dev@tnull.de>"]
homepage = "https://lightningdevkit.org/"
license = "MIT OR Apache-2.0"
Expand Down
3 changes: 3 additions & 0 deletions MOBILE_DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ class SyncProgressView: UIView {
self.statusLabel.text = "Syncing Lightning: \(percent)%"
case .feeRateCache:
self.statusLabel.text = "Updating fee rates: \(percent)%"
case .additionalOnchainWallets:
self.statusLabel.text = "Syncing other wallets: \(percent)%"
}

self.progressBar.isHidden = false
Expand Down Expand Up @@ -669,6 +671,7 @@ class SyncProgressFragment : Fragment() {
SyncType.ONCHAIN_WALLET -> "Syncing wallet..."
SyncType.LIGHTNING_WALLET -> "Syncing Lightning..."
SyncType.FEE_RATE_CACHE -> "Updating fee rates..."
SyncType.ADDITIONAL_ONCHAIN_WALLETS -> "Syncing other wallets..."
}

binding.progressContainer.visibility = View.VISIBLE
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import PackageDescription

let tag = "v0.7.0-rc.85"
let checksum = "7837d164dc39310d6a5597c0e5598126c5fa4daa72ba63fb9cb0c4f92a0c1e24"
let tag = "v0.7.0-rc.86"
let checksum = "4f4f2b0fc81b24f24faf5061b69e739cae2f02fc5303d6cb4f60b162aeed9eb4"
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"

let package = Package(
Expand Down
2 changes: 1 addition & 1 deletion bindings/kotlin/ldk-node-android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
group=com.synonym
version=0.7.0-rc.85
version=0.7.0-rc.86
Original file line number Diff line number Diff line change
Expand Up @@ -9966,19 +9966,22 @@ object FfiConverterTypeBackgroundSyncConfig: FfiConverterRustBuffer<BackgroundSy
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
)
}

override fun allocationSize(value: BackgroundSyncConfig) = (
FfiConverterULong.allocationSize(value.`onchainWalletSyncIntervalSecs`) +
FfiConverterULong.allocationSize(value.`lightningWalletSyncIntervalSecs`) +
FfiConverterULong.allocationSize(value.`feeRateCacheUpdateIntervalSecs`)
FfiConverterULong.allocationSize(value.`feeRateCacheUpdateIntervalSecs`) +
FfiConverterULong.allocationSize(value.`additionalWalletSyncIntervalSecs`)
)

override fun write(value: BackgroundSyncConfig, buf: ByteBuffer) {
FfiConverterULong.write(value.`onchainWalletSyncIntervalSecs`, buf)
FfiConverterULong.write(value.`lightningWalletSyncIntervalSecs`, buf)
FfiConverterULong.write(value.`feeRateCacheUpdateIntervalSecs`, buf)
FfiConverterULong.write(value.`additionalWalletSyncIntervalSecs`, buf)
}
}

Expand Down Expand Up @@ -11019,19 +11022,22 @@ object FfiConverterTypeRuntimeSyncIntervals: FfiConverterRustBuffer<RuntimeSyncI
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
FfiConverterULong.read(buf),
)
}

override fun allocationSize(value: RuntimeSyncIntervals) = (
FfiConverterULong.allocationSize(value.`onchainWalletSyncIntervalSecs`) +
FfiConverterULong.allocationSize(value.`lightningWalletSyncIntervalSecs`) +
FfiConverterULong.allocationSize(value.`feeRateCacheUpdateIntervalSecs`)
FfiConverterULong.allocationSize(value.`feeRateCacheUpdateIntervalSecs`) +
FfiConverterULong.allocationSize(value.`additionalWalletSyncIntervalSecs`)
)

override fun write(value: RuntimeSyncIntervals, buf: ByteBuffer) {
FfiConverterULong.write(value.`onchainWalletSyncIntervalSecs`, buf)
FfiConverterULong.write(value.`lightningWalletSyncIntervalSecs`, buf)
FfiConverterULong.write(value.`feeRateCacheUpdateIntervalSecs`, buf)
FfiConverterULong.write(value.`additionalWalletSyncIntervalSecs`, buf)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@ data class AnchorChannelsConfig (
data class BackgroundSyncConfig (
val `onchainWalletSyncIntervalSecs`: kotlin.ULong,
val `lightningWalletSyncIntervalSecs`: kotlin.ULong,
val `feeRateCacheUpdateIntervalSecs`: kotlin.ULong
val `feeRateCacheUpdateIntervalSecs`: kotlin.ULong,
val `additionalWalletSyncIntervalSecs`: kotlin.ULong = 80uL
) {
companion object
}
Expand Down Expand Up @@ -1281,7 +1282,8 @@ data class RoutingFees (
data class RuntimeSyncIntervals (
val `onchainWalletSyncIntervalSecs`: kotlin.ULong,
val `lightningWalletSyncIntervalSecs`: kotlin.ULong,
val `feeRateCacheUpdateIntervalSecs`: kotlin.ULong
val `feeRateCacheUpdateIntervalSecs`: kotlin.ULong,
val `additionalWalletSyncIntervalSecs`: kotlin.ULong = 80uL
) {
companion object
}
Expand Down Expand Up @@ -2289,7 +2291,8 @@ enum class SyncType {

ONCHAIN_WALLET,
LIGHTNING_WALLET,
FEE_RATE_CACHE;
FEE_RATE_CACHE,
ADDITIONAL_ONCHAIN_WALLETS;
companion object
}

Expand Down
2 changes: 1 addition & 1 deletion bindings/kotlin/ldk-node-jvm/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx1536m
kotlin.code.style=official
group=com.synonym
version=0.7.0-rc.85
version=0.7.0-rc.86
3 changes: 3 additions & 0 deletions bindings/ldk_node.udl
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ dictionary BackgroundSyncConfig {
u64 onchain_wallet_sync_interval_secs;
u64 lightning_wallet_sync_interval_secs;
u64 fee_rate_cache_update_interval_secs;
u64 additional_wallet_sync_interval_secs = 80;
Comment thread
ovitrif marked this conversation as resolved.
Resolved
};

dictionary RuntimeSyncIntervals {
u64 onchain_wallet_sync_interval_secs;
u64 lightning_wallet_sync_interval_secs;
u64 fee_rate_cache_update_interval_secs;
u64 additional_wallet_sync_interval_secs = 80;
};

dictionary EsploraSyncConfig {
Expand Down Expand Up @@ -602,6 +604,7 @@ enum SyncType {
"OnchainWallet",
"LightningWallet",
"FeeRateCache",
"AdditionalOnchainWallets",
};

[Enum]
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ldk_node"
version = "0.7.0-rc.85"
version = "0.7.0-rc.86"
authors = [
{ name="Elias Rohrer", email="dev@tnull.de" },
]
Expand Down
36 changes: 32 additions & 4 deletions bindings/python/src/ldk_node/ldk_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -8356,13 +8356,18 @@ class BackgroundSyncConfig:
onchain_wallet_sync_interval_secs: "int"
lightning_wallet_sync_interval_secs: "int"
fee_rate_cache_update_interval_secs: "int"
def __init__(self, *, onchain_wallet_sync_interval_secs: "int", lightning_wallet_sync_interval_secs: "int", fee_rate_cache_update_interval_secs: "int"):
additional_wallet_sync_interval_secs: "int"
def __init__(self, *, onchain_wallet_sync_interval_secs: "int", lightning_wallet_sync_interval_secs: "int", fee_rate_cache_update_interval_secs: "int", additional_wallet_sync_interval_secs: "int" = _DEFAULT):
self.onchain_wallet_sync_interval_secs = onchain_wallet_sync_interval_secs
self.lightning_wallet_sync_interval_secs = lightning_wallet_sync_interval_secs
self.fee_rate_cache_update_interval_secs = fee_rate_cache_update_interval_secs
if additional_wallet_sync_interval_secs is _DEFAULT:
self.additional_wallet_sync_interval_secs = 80
else:
self.additional_wallet_sync_interval_secs = additional_wallet_sync_interval_secs

def __str__(self):
return "BackgroundSyncConfig(onchain_wallet_sync_interval_secs={}, lightning_wallet_sync_interval_secs={}, fee_rate_cache_update_interval_secs={})".format(self.onchain_wallet_sync_interval_secs, self.lightning_wallet_sync_interval_secs, self.fee_rate_cache_update_interval_secs)
return "BackgroundSyncConfig(onchain_wallet_sync_interval_secs={}, lightning_wallet_sync_interval_secs={}, fee_rate_cache_update_interval_secs={}, additional_wallet_sync_interval_secs={})".format(self.onchain_wallet_sync_interval_secs, self.lightning_wallet_sync_interval_secs, self.fee_rate_cache_update_interval_secs, self.additional_wallet_sync_interval_secs)

def __eq__(self, other):
if self.onchain_wallet_sync_interval_secs != other.onchain_wallet_sync_interval_secs:
Expand All @@ -8371,6 +8376,8 @@ def __eq__(self, other):
return False
if self.fee_rate_cache_update_interval_secs != other.fee_rate_cache_update_interval_secs:
return False
if self.additional_wallet_sync_interval_secs != other.additional_wallet_sync_interval_secs:
return False
return True

class _UniffiConverterTypeBackgroundSyncConfig(_UniffiConverterRustBuffer):
Expand All @@ -8380,19 +8387,22 @@ def read(buf):
onchain_wallet_sync_interval_secs=_UniffiConverterUInt64.read(buf),
lightning_wallet_sync_interval_secs=_UniffiConverterUInt64.read(buf),
fee_rate_cache_update_interval_secs=_UniffiConverterUInt64.read(buf),
additional_wallet_sync_interval_secs=_UniffiConverterUInt64.read(buf),
)

@staticmethod
def check_lower(value):
_UniffiConverterUInt64.check_lower(value.onchain_wallet_sync_interval_secs)
_UniffiConverterUInt64.check_lower(value.lightning_wallet_sync_interval_secs)
_UniffiConverterUInt64.check_lower(value.fee_rate_cache_update_interval_secs)
_UniffiConverterUInt64.check_lower(value.additional_wallet_sync_interval_secs)

@staticmethod
def write(value, buf):
_UniffiConverterUInt64.write(value.onchain_wallet_sync_interval_secs, buf)
_UniffiConverterUInt64.write(value.lightning_wallet_sync_interval_secs, buf)
_UniffiConverterUInt64.write(value.fee_rate_cache_update_interval_secs, buf)
_UniffiConverterUInt64.write(value.additional_wallet_sync_interval_secs, buf)


class BalanceDetails:
Expand Down Expand Up @@ -10307,13 +10317,18 @@ class RuntimeSyncIntervals:
onchain_wallet_sync_interval_secs: "int"
lightning_wallet_sync_interval_secs: "int"
fee_rate_cache_update_interval_secs: "int"
def __init__(self, *, onchain_wallet_sync_interval_secs: "int", lightning_wallet_sync_interval_secs: "int", fee_rate_cache_update_interval_secs: "int"):
additional_wallet_sync_interval_secs: "int"
def __init__(self, *, onchain_wallet_sync_interval_secs: "int", lightning_wallet_sync_interval_secs: "int", fee_rate_cache_update_interval_secs: "int", additional_wallet_sync_interval_secs: "int" = _DEFAULT):
self.onchain_wallet_sync_interval_secs = onchain_wallet_sync_interval_secs
self.lightning_wallet_sync_interval_secs = lightning_wallet_sync_interval_secs
self.fee_rate_cache_update_interval_secs = fee_rate_cache_update_interval_secs
if additional_wallet_sync_interval_secs is _DEFAULT:
self.additional_wallet_sync_interval_secs = 80
else:
self.additional_wallet_sync_interval_secs = additional_wallet_sync_interval_secs

def __str__(self):
return "RuntimeSyncIntervals(onchain_wallet_sync_interval_secs={}, lightning_wallet_sync_interval_secs={}, fee_rate_cache_update_interval_secs={})".format(self.onchain_wallet_sync_interval_secs, self.lightning_wallet_sync_interval_secs, self.fee_rate_cache_update_interval_secs)
return "RuntimeSyncIntervals(onchain_wallet_sync_interval_secs={}, lightning_wallet_sync_interval_secs={}, fee_rate_cache_update_interval_secs={}, additional_wallet_sync_interval_secs={})".format(self.onchain_wallet_sync_interval_secs, self.lightning_wallet_sync_interval_secs, self.fee_rate_cache_update_interval_secs, self.additional_wallet_sync_interval_secs)

def __eq__(self, other):
if self.onchain_wallet_sync_interval_secs != other.onchain_wallet_sync_interval_secs:
Expand All @@ -10322,6 +10337,8 @@ def __eq__(self, other):
return False
if self.fee_rate_cache_update_interval_secs != other.fee_rate_cache_update_interval_secs:
return False
if self.additional_wallet_sync_interval_secs != other.additional_wallet_sync_interval_secs:
return False
return True

class _UniffiConverterTypeRuntimeSyncIntervals(_UniffiConverterRustBuffer):
Expand All @@ -10331,19 +10348,22 @@ def read(buf):
onchain_wallet_sync_interval_secs=_UniffiConverterUInt64.read(buf),
lightning_wallet_sync_interval_secs=_UniffiConverterUInt64.read(buf),
fee_rate_cache_update_interval_secs=_UniffiConverterUInt64.read(buf),
additional_wallet_sync_interval_secs=_UniffiConverterUInt64.read(buf),
)

@staticmethod
def check_lower(value):
_UniffiConverterUInt64.check_lower(value.onchain_wallet_sync_interval_secs)
_UniffiConverterUInt64.check_lower(value.lightning_wallet_sync_interval_secs)
_UniffiConverterUInt64.check_lower(value.fee_rate_cache_update_interval_secs)
_UniffiConverterUInt64.check_lower(value.additional_wallet_sync_interval_secs)

@staticmethod
def write(value, buf):
_UniffiConverterUInt64.write(value.onchain_wallet_sync_interval_secs, buf)
_UniffiConverterUInt64.write(value.lightning_wallet_sync_interval_secs, buf)
_UniffiConverterUInt64.write(value.fee_rate_cache_update_interval_secs, buf)
_UniffiConverterUInt64.write(value.additional_wallet_sync_interval_secs, buf)


class ScoringDecayParameters:
Expand Down Expand Up @@ -15541,6 +15561,8 @@ class SyncType(enum.Enum):

FEE_RATE_CACHE = 2

ADDITIONAL_ONCHAIN_WALLETS = 3



class _UniffiConverterTypeSyncType(_UniffiConverterRustBuffer):
Expand All @@ -15553,6 +15575,8 @@ def read(buf):
return SyncType.LIGHTNING_WALLET
if variant == 3:
return SyncType.FEE_RATE_CACHE
if variant == 4:
return SyncType.ADDITIONAL_ONCHAIN_WALLETS
raise InternalError("Raw enum value doesn't match any cases")

@staticmethod
Expand All @@ -15563,6 +15587,8 @@ def check_lower(value):
return
if value == SyncType.FEE_RATE_CACHE:
return
if value == SyncType.ADDITIONAL_ONCHAIN_WALLETS:
return
raise ValueError(value)

@staticmethod
Expand All @@ -15573,6 +15599,8 @@ def write(value, buf):
buf.write_i32(2)
if value == SyncType.FEE_RATE_CACHE:
buf.write_i32(3)
if value == SyncType.ADDITIONAL_ONCHAIN_WALLETS:
buf.write_i32(4)



Expand Down
Loading
Loading