-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to LDK 0.4.2 #53
Commits on Jun 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 182bc21 - Browse repository at this point
Copy the full SHA 182bc21View commit details
Commits on Jun 23, 2024
-
Merge pull request lightningdevkit#317 from elnosh/fix-inbound-comment
Fix inbound capacity comment
Configuration menu - View commit details
-
Copy full SHA for 66fec69 - Browse repository at this point
Copy the full SHA 66fec69View commit details
Commits on Jul 1, 2024
-
Allow start from outer runtime
We add a `Node::start_with_runtime` method that allows to reuse a pre-existing runtime, e.g., to avoid stacking runtime contexts when running in a tokio async environment.
Configuration menu - View commit details
-
Copy full SHA for f2074f1 - Browse repository at this point
Copy the full SHA f2074f1View commit details
Commits on Jul 8, 2024
-
Revert "Pin
url
to v2.5.0 in CI to fix MSRV breakage"This reverts commit 0285b55.
Configuration menu - View commit details
-
Copy full SHA for a7466c6 - Browse repository at this point
Copy the full SHA a7466c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab059a8 - Browse repository at this point
Copy the full SHA ab059a8View commit details
Commits on Jul 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a60900f - Browse repository at this point
Copy the full SHA a60900fView commit details -
Merge pull request lightningdevkit#323 from jbesraa/2024-07-10-ignore…
…-uniffi-target-folder Ignore all `target` folders including bindings
Configuration menu - View commit details
-
Copy full SHA for 13ec8df - Browse repository at this point
Copy the full SHA 13ec8dfView commit details
Commits on Jul 11, 2024
-
Merge pull request lightningdevkit#319 from lightningdevkit/2024-06-s…
…tart-with-runtime Allow start from outer runtime
Configuration menu - View commit details
-
Copy full SHA for 8a4afb6 - Browse repository at this point
Copy the full SHA 8a4afb6View commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for abfcc2e - Browse repository at this point
Copy the full SHA abfcc2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 403c137 - Browse repository at this point
Copy the full SHA 403c137View commit details
Commits on Jul 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4793289 - Browse repository at this point
Copy the full SHA 4793289View commit details -
Merge pull request lightningdevkit#326 from tnull/2024-07-unpin-cc
Revert "Pin `cc` to `1.0.105` for MSRV"
Configuration menu - View commit details
-
Copy full SHA for 8dd3790 - Browse repository at this point
Copy the full SHA 8dd3790View commit details
Commits on Jul 18, 2024
-
Add BIP21 Unified QR Code Support (lightningdevkit#302)
* Add `UnifiedQrPayment` module for BIP21 URIs Firstly, I thought I staged and made commits for `unified_qr.rs` so sorry if this is out of order! But in `unified_qr.rs` I - I introduced the `UnifiedQrPayment` struct to handle creating and paying BIP21 URIs - `receive` generates a URI with an on-chain address and BOLT11 invoice and returns the URI as a string - `send` will parse a given URI string and attempt to send the BOLT12 offer, BOLT11 invoice, then if those fail the fallback on-chain address will be paid to. - Then I included tests for URI generation and URI parsing - Also has logging and error handling for payment operations * Add `unified_qr_payment` payment handler to `Node` - implement unified_qr_payment method to create the Unified QR payment handler - Includes conditional UniFFI features and updates docs with BIP21 and BOLT11 links * Add support for `unified_qr` in payment mod - Included unified_qr in payment module - Added `PaymentResult` and `UnifiedQrPayment` from unified_qr for public use * Add bip21 crate to handle BIP21 URIs * Add `UnifiedQrPayment` and `PaymentResult` to `ldk_node.udl` - Introduced `UnifiedQrPayment` method to `Node` interface - Add `UnifiedQrPayment` interface with `receieve and `send` methods - Add `PaymentResult` interface (enum) with `Onchain`, `Bolt11` and `Bolt12` fields These changes add support for our UniFFI bindings and enable the use of `unified_qr_payment` payment handler in Swift, and Kotlin. * Update `Error` enum with URI related errors - Add `UriParameterFailed` and `InvalidUri` fields to the `Error` enum - Added related error messages in the Display impl for the new fields * Add `PaymentResult` import for UniFFI bindings - Added `PaymentResult` so the .udl could access the enum - Added comment to explain the need to import any re-exported items to enure they're accessible in UniFFI. (becasue rustc says to add them in `lib.rs` * Add Unified QR `send`/`receive` integration tests - Added `unified_qr_send_receive` test to verify the `UnifedQrPayment` functionality - Added logic to handle paying a `BOLT12` offer, `BOLT11` invoice, and if those fail `On-chain` tx from a URI. - Validated each payments successful event - Ensured the off-chain and on-chain balacnes reflected the payment attempts * Update PR with optimizations and nit fixups The changes include: - Fixed a handful of nits for better readability in docs and simple grammar errors and made various name changes that affected the committed files. - Added a helper function in unified_qr.rs called capitalize_qr_params to format the lightning param in the receive method - Removed the optional message in the receive method and made it a required &str - Adjusted UDL formatting to use tabs instead of spaces These changes were made to improve code quality and maintainability based on the review feedback * Refactor URI parsing and add Bolt12 offer in receive Changes include: - Modified serialize_params to serialize both invoices and offers - Refactored deserialize_temp by removing the code that was parsing based on the lightning invoice/offer prefix. I instead used for loop to iterate over each lightning parameter, attempting to parse the string as an offer first, and then as an invoice. May need to log an error if neither succeeds - Added support for Bolt12 offers in the receive method - Updated capitalize_params function to handle multiple lightning parameters - Added a generate_bip21_uri test to show what the uri looks like in integration_tests_rust - Adjusted integration tests. Still needs work Still trying to figure out a bug related to Bolt12 offers being "paid" when it should fall back to an on-chain tx * Update BOLT12 offer to use `lno` key In this commit: - In serialize_params, BOLT12 offers were changed to be serialized with the `lno` key rather than the `lightning` key - During deserializing, I had to make the same update. Used a match to check whether it was a `lightning` or `lno` key and then parsed accordingly. - Next, a small name change: capitalize_qr_params to format_uri. Previously I changed the value after "&lightning" to all caps, but the "&lno=" value wasn't being changed. So, added a helper method inside format_uri to capitalize the values given the key! - Updated corresponding tests with `lno` update Small nits: - Updated QrPaymentResult with more thorough docs - Added a parsing test with an offer * Refactor for clarity and improve error handling This commit fixes a handful of minor comments/nits that include: - Updates to set the `bip21` crates default-features to false, to minimize dependencies. - Enable the `std` feature since we use/benefit from it. - In `receive` return `InvoiceCreationFailed` or `OfferCreationFailed` when creating an invoice or offer. Rather than silently logging the error. - Also in `receive` we first check if an amount is specified, and if not, return an error and abort. - Pass in `Config` to `UnifiedQrPayment` struct to use the users config network. - In `send` instead of checking each network for the `NetworkChecked` URI, we pass in the `Config::Network`. - Simplifed param parsing in `deserialize_temp` by directly finding the key and parsing the corresponding value. - General documentation fixes. - In parsing tests, moved longer invoice/offer strings into. variables that start with expected_ for clarity. * Fix docs for clarity Cleaned up the docs so they are easier to understand for the user. Also changed the message param in receive to description.
Configuration menu - View commit details
-
Copy full SHA for 77a0bbe - Browse repository at this point
Copy the full SHA 77a0bbeView commit details
Commits on Jul 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for caa4d22 - Browse repository at this point
Copy the full SHA caa4d22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a59dc0 - Browse repository at this point
Copy the full SHA 8a59dc0View commit details -
Recently, Rust 1.80 introduced automatic checking of `cfg` flags (see https://blog.rust-lang.org/2024/05/06/check-cfg.html). Here, we add all custom `cfg`s to the expected list
Configuration menu - View commit details
-
Copy full SHA for 5733b58 - Browse repository at this point
Copy the full SHA 5733b58View commit details -
Merge pull request lightningdevkit#335 from tnull/2024-07-account-for…
…-check-cfg Account for `check-cfg`
Configuration menu - View commit details
-
Copy full SHA for 5b9b607 - Browse repository at this point
Copy the full SHA 5b9b607View commit details -
Merge pull request lightningdevkit#334 from tnull/2024-07-fix-onchain…
…-payment-variable-naming-bindings
Configuration menu - View commit details
-
Copy full SHA for 8e5dbfe - Browse repository at this point
Copy the full SHA 8e5dbfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 987f78c - Browse repository at this point
Copy the full SHA 987f78cView commit details
Commits on Aug 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f382ea0 - Browse repository at this point
Copy the full SHA f382ea0View commit details -
Merge pull request lightningdevkit#337 from slanesuke/2024-08-fix-cln…
…-test-cfg Fix: added `cfg(cln_test)` to `Cargo.toml`
Configuration menu - View commit details
-
Copy full SHA for d76509b - Browse repository at this point
Copy the full SHA d76509bView commit details
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ed841e0 - Browse repository at this point
Copy the full SHA ed841e0View commit details -
Merge pull request lightningdevkit#338 from tnull/2024-08-pin-tokio
Pin `tokio` to v1.38.1 to fix MSRV build
Configuration menu - View commit details
-
Copy full SHA for 952b889 - Browse repository at this point
Copy the full SHA 952b889View commit details
Commits on Aug 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 40170d9 - Browse repository at this point
Copy the full SHA 40170d9View commit details -
Merge pull request lightningdevkit#340 from tnull/2024-08-cache-downl…
…oads Enable caching for `bitcoind`/`electrs` in CI
Configuration menu - View commit details
-
Copy full SHA for 0d4ff37 - Browse repository at this point
Copy the full SHA 0d4ff37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30ce72d - Browse repository at this point
Copy the full SHA 30ce72dView commit details -
Merge pull request lightningdevkit#341 from tnull/2024-08-make-cache-…
…os-specific Make cache `key`s OS-specific
Configuration menu - View commit details
-
Copy full SHA for 2bbb764 - Browse repository at this point
Copy the full SHA 2bbb764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b35703 - Browse repository at this point
Copy the full SHA 6b35703View commit details -
Merge pull request lightningdevkit#342 from tnull/2024-08-try-fix-cac…
…hing Try fix caching
Configuration menu - View commit details
-
Copy full SHA for dcdbaf7 - Browse repository at this point
Copy the full SHA dcdbaf7View commit details
Commits on Aug 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 41ae206 - Browse repository at this point
Copy the full SHA 41ae206View commit details -
Merge pull request lightningdevkit#343 from tnull/2024-08-try-fix-cac…
…hing-2 Try fixing caching once more
Configuration menu - View commit details
-
Copy full SHA for dffb790 - Browse repository at this point
Copy the full SHA dffb790View commit details -
.. we previously only set the environment variables when we downloaded the binaries. Here, we set them in a separate step to have them being usable when we're hitting the cache
Configuration menu - View commit details
-
Copy full SHA for 0cfb829 - Browse repository at this point
Copy the full SHA 0cfb829View commit details -
Merge pull request lightningdevkit#344 from tnull/2024-08-try-fix-cac…
…hing-3 Fix caching third attempt
Configuration menu - View commit details
-
Copy full SHA for 3b645b3 - Browse repository at this point
Copy the full SHA 3b645b3View commit details
Commits on Aug 19, 2024
-
Add
payer_note
inPaymentKind::Bolt12
Add support for including `payer_note` in `Bolt12Offer` and `PaymentKind::Bolt12` and updated the relevant code to handle where the new `payer_note` field was required.
Configuration menu - View commit details
-
Copy full SHA for 683bfb3 - Browse repository at this point
Copy the full SHA 683bfb3View commit details -
Merge pull request lightningdevkit#327 from slanesuke/2024-07-expose-…
…payer_note-in-PKbolt12 Expose `payer_note` in `PaymentKind::Bolt12`
Configuration menu - View commit details
-
Copy full SHA for 76fb23f - Browse repository at this point
Copy the full SHA 76fb23fView commit details
Commits on Aug 22, 2024
-
Return a non-
Arc
edBolt12Payment
for non-uniffi
.. somehow this was previously overlooked.
Configuration menu - View commit details
-
Copy full SHA for c5b8d6e - Browse repository at this point
Copy the full SHA c5b8d6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e233188 - Browse repository at this point
Copy the full SHA e233188View commit details
Commits on Aug 27, 2024
-
Introduce
SendingParameters
struct`SendingParameters` allows users to override opinionated values while routing a payment such as `max_total_routing_fees`, `max_path_count` `max_total_cltv_delta`, and `max_channel_saturation_power_of_half` Updated docs for `max_channel_saturation_power_of_half` for clarity.
Configuration menu - View commit details
-
Copy full SHA for 5fe90d1 - Browse repository at this point
Copy the full SHA 5fe90d1View commit details -
Add default
SendingParameters
to node configIntroduced `sending_parameters_config` to `Config` for node-wide routing and pathfinding configuration. Also, added default values for `SendingParameters` to ensure reasonable defaults when no custom settings are provided by the user.
Configuration menu - View commit details
-
Copy full SHA for bf4ddff - Browse repository at this point
Copy the full SHA bf4ddffView commit details -
Add
SendingParameters
to bolt11send
Updated `Bolt11Payment` `send` method to accept `SendingParameters`, as a parameter. If the user provided sending params the default values are overridden.
Configuration menu - View commit details
-
Copy full SHA for d6e6ff7 - Browse repository at this point
Copy the full SHA d6e6ff7View commit details -
Add
SendingParameters
to bolt11send_using_amount
Added the optional `SendingParameters` to `send_using_amount` in `Bolt11Payment`. If the user provides sending params the values will be overridden otherwise they'll use the default values.
Configuration menu - View commit details
-
Copy full SHA for 2b85ba9 - Browse repository at this point
Copy the full SHA 2b85ba9View commit details -
Add
SendingParameters
to spontaneoussend
Added optional SendingParameters to the send method in SpontaneousPayment. If the user provides sending params the values will be overridden otherwise they remain the same.
Configuration menu - View commit details
-
Copy full SHA for 4822336 - Browse repository at this point
Copy the full SHA 4822336View commit details -
Merge pull request lightningdevkit#336 from slanesuke/2024-07-introdu…
…ce-PaymentParameters Add `SendingParameters` struct for customizable payments
Configuration menu - View commit details
-
Copy full SHA for 398ece5 - Browse repository at this point
Copy the full SHA 398ece5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76d0698 - Browse repository at this point
Copy the full SHA 76d0698View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4235a19 - Browse repository at this point
Copy the full SHA 4235a19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ca42ff - Browse repository at this point
Copy the full SHA 3ca42ffView commit details
Commits on Aug 28, 2024
-
Refactor
max_total_routing_fee_msat
to allow settingNone
Previously, the `SendingParamters` field was simply an `Option<u64>`, which however means we could just override it to be `Some`. Here, we have it be `Option<Option<u64>>` which allows the `None` override. As UniFFI doesn't support `Option<Option<..>>`, we work around this via a dedicated `enum` that is only exposed under the `uniffi` feature.
Configuration menu - View commit details
-
Copy full SHA for 8a432b1 - Browse repository at this point
Copy the full SHA 8a432b1View commit details -
Drop
default_cltv_expiry_delta
.. as it was used for spontaneous payments only and hence a bit misleading. We drop it for now and see if any users would complain. If so, it would probably be sufficient for it to be an optional parameter on the spontaneous payments methods.
Configuration menu - View commit details
-
Copy full SHA for b282d42 - Browse repository at this point
Copy the full SHA b282d42View commit details -
Refactor
ChannelConfig
/MaxDustHTLCExposure
Previously, we chose to expose `ChannelConfig` as a Uniffi `interface`, providing accessor methods. Unfortunately this forced us to `Arc` it everywhere in the API, and also didn't allow to retrieve the currently set dust exposure limits. Here, we refactor our version of `ChannelConfig` to be a normal `struct` (Uniffi `dictionary`), and only expose the `MaxDustHTLCExposure` as an enum-`interface`.
Configuration menu - View commit details
-
Copy full SHA for 09d68ee - Browse repository at this point
Copy the full SHA 09d68eeView commit details -
Merge pull request lightningdevkit#351 from tnull/2024-08-336-followup
lightningdevkit#336 followups
Configuration menu - View commit details
-
Copy full SHA for ab7cc70 - Browse repository at this point
Copy the full SHA ab7cc70View commit details -
Merge pull request lightningdevkit#350 from tnull/2024-08-channel-con…
…fig-refactor Refactor `ChannelConfig` / `MaxDustHTLCExposure`
Configuration menu - View commit details
-
Copy full SHA for ea448a1 - Browse repository at this point
Copy the full SHA ea448a1View commit details
Commits on Aug 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7202c83 - Browse repository at this point
Copy the full SHA 7202c83View commit details -
Refactor
FeeEstimator
to introduce local target variants.. previously we used LDK's `FeeEstimator` and `ConfirmationTarget` and ~misused some of the latter's variants for our non-Lightning operations. Here, we introduce our own `FeeEstimator` and `ConfirmationTarget` allowing to add specific variants for `ChannelFunding` and `OnchainPayment`s, for example.
Configuration menu - View commit details
-
Copy full SHA for 42a695e - Browse repository at this point
Copy the full SHA 42a695eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4535c5f - Browse repository at this point
Copy the full SHA 4535c5fView commit details
Commits on Sep 3, 2024
-
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v3...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Configuration menu - View commit details
-
Copy full SHA for e805403 - Browse repository at this point
Copy the full SHA e805403View commit details
Commits on Sep 4, 2024
-
Merge pull request lightningdevkit#353 from lightningdevkit/dependabo…
…t/github_actions/dot-github/workflows/actions/download-artifact-4.1.7 Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
Configuration menu - View commit details
-
Copy full SHA for bd42f57 - Browse repository at this point
Copy the full SHA bd42f57View commit details
Commits on Sep 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1183019 - Browse repository at this point
Copy the full SHA 1183019View commit details -
Configuration menu - View commit details
-
Copy full SHA for 648058e - Browse repository at this point
Copy the full SHA 648058eView commit details -
Add copyright notices where they were missing
Previously, only a few files included coypright headers. Here, we fix the omission and add the headers to all files where they were absent.
Configuration menu - View commit details
-
Copy full SHA for 7eca7fb - Browse repository at this point
Copy the full SHA 7eca7fbView commit details -
Merge pull request lightningdevkit#355 from tnull/2024-09-add-copyrig…
…ht-headers Add copyright notices where they were missing
Configuration menu - View commit details
-
Copy full SHA for 6d8382b - Browse repository at this point
Copy the full SHA 6d8382bView commit details
Commits on Sep 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6be51c6 - Browse repository at this point
Copy the full SHA 6be51c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92612dc - Browse repository at this point
Copy the full SHA 92612dcView commit details
Commits on Sep 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7c7b98b - Browse repository at this point
Copy the full SHA 7c7b98bView commit details
Commits on Sep 13, 2024
-
Merge pull request lightningdevkit#357 from G8XSU/vss-client-upgrade
Vss-client upgrade to 0.3.x
Configuration menu - View commit details
-
Copy full SHA for 1a6a2ca - Browse repository at this point
Copy the full SHA 1a6a2caView commit details
Commits on Sep 23, 2024
-
feat: sanitize and set node alias
What this commit does: Implements a method `set_node_alias` on NodeBuilder to allow callers customize/set the value of the node alias. This method sanitizes the user-provided alias by ensuring the following: + Node alias is UTF-8-encoded String + Node alias is non-empty + Node alias cannot exceed 32 bytes + Node alias is only valid up to the first null byte. Every character after the null byte is discraded Additionally, a test case is provided to cover sanitizing empty node alias, as well as an alias with emojis (copied and modified from rust-lightning) and a sandwiched null byte.
Configuration menu - View commit details
-
Copy full SHA for 12dfc1a - Browse repository at this point
Copy the full SHA 12dfc1aView commit details -
feat: broadcast node announcement with set alias
What this commit does: Broadcasts node announcement with the user-provided alias, if set, else, uses the default [0u8;32]. Additionally, adds a random node alias generating function for use in the generation of random configuration.
Configuration menu - View commit details
-
Copy full SHA for e54bfe0 - Browse repository at this point
Copy the full SHA e54bfe0View commit details -
fix: correct node announcement, simplify setting alias, clean
alias sanitization - Skips broadcasting node announcement in the event that either the node alias or the listening addresses are not set. - Aligns the InvalidNodeAlias error variant with the others to make it work with language bindings. - Simplifies the method to set the node alias. - Cleans up the alias sanitizing function to ensure that protocol- compliant aliases (in this case, empty strings) are not flagged. Additionally, removes the check for sandwiched null byte. - Finally, adds the relevant update to struct and interface to reflect changes in Rust types.
Configuration menu - View commit details
-
Copy full SHA for 5bd4a88 - Browse repository at this point
Copy the full SHA 5bd4a88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e73296 - Browse repository at this point
Copy the full SHA 8e73296View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ad7029 - Browse repository at this point
Copy the full SHA 7ad7029View commit details -
refactor: update node alias sanitization
What this commit does: + Updates the sanitization function for node alias to return NodeAlias + Updates the node alias type in the configuration to NodeAlias and implements a conversion to/from String for bindings + With this update, regardless of where the alias is set, i.e. in the set_node_alias or directly, sanitization occurs.
Configuration menu - View commit details
-
Copy full SHA for 81a0f4d - Browse repository at this point
Copy the full SHA 81a0f4dView commit details -
refactor: decompose connecting w/ peer & opening a channel
What this commit does: + Decomposes connect_open_channel into two different functions: open_channel and open_announced_channel. This allows opening announced channels based on configured node alias and listening addresses values. + This enforces channel announcement only on the condition that both configuration values are set. + Additionally, a new error variant `OpenAnnouncedChannelFailed` is introduced to capture failure. Note: I thought I added the `InvalidNodeAlias` variant in the previous commit
Configuration menu - View commit details
-
Copy full SHA for 32e7096 - Browse repository at this point
Copy the full SHA 32e7096View commit details -
Configuration menu - View commit details
-
Copy full SHA for 059a30e - Browse repository at this point
Copy the full SHA 059a30eView commit details -
test: update tests due to
connect_open_channel
decompositionWhat this commit does: + Replaces calls to `connect_open_channel` with `open_channel` and `open_announced_channel` where appropriate. Status: Work In Progress (WIP) Observation: + The integration tests are now flaky and need further investigation to ascertain the reason(s) why and then to fix.
Configuration menu - View commit details
-
Copy full SHA for 09fca09 - Browse repository at this point
Copy the full SHA 09fca09View commit details -
fix: change channel config type in open_(announced)_channel
What this commit does: + Removes the wrapping Arc from the channel config. This is a missed update after rebasing.
Configuration menu - View commit details
-
Copy full SHA for 1160034 - Browse repository at this point
Copy the full SHA 1160034View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c3deaf - Browse repository at this point
Copy the full SHA 6c3deafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aff282 - Browse repository at this point
Copy the full SHA 6aff282View commit details
Commits on Sep 24, 2024
-
refactor: improve channel announcement logic and fix binding tests
This commit addresses changes necessary to: - fix failing tests for generated bindings - remove unnecessary error variant previously introduced to capture failure associated with opening announced channels, and re-use existing variants that better capture the reasons, i.e. `InvalidNodeAlias` and `InvalidSocketAddress`, why opening an announced channel failed. - correct visibility specifiers for objects, and - cleanup nitpicks Specific modifications across several files include: - updating the UDL file, as well as tests related to python and kotlin that call `open_channel` and/or open_announced_channel - repositioning/rearranging methods and struct fields - introducing enums (`ChannelAnnouncementStatus` & `ChannelAnnouncementBlocker`) to capture and codify channel announceable eligibility, providing reasons for unannounceable channels - modifying `can_announce_channel` to utilize the aforementioned enums, as opposed to simply returning a boolean value. - cleaning up and renaming `connect_open_channel` to `open_channel_inner`, and maintaining a boolean flag for channel announcement - updating documentation, unit, and integration tests that factor all these changes
Configuration menu - View commit details
-
Copy full SHA for 0af5df6 - Browse repository at this point
Copy the full SHA 0af5df6View commit details
Commits on Sep 27, 2024
-
fix(test): Implement conditional channel opening based on aliases and…
… addresses This commit addresses flaky test issues related to conditional channel opening between nodes, considering node aliases and listening addresses. Changes in test modules: - Add/modify helper functions to randomize channel announcement flags - Generate random node aliases based on announcement flags: * Set custom alias if announce_channel is true * Use default alias otherwise - Update channel opening logic to account for node and channel announcements
Configuration menu - View commit details
-
Copy full SHA for 4fd1cb8 - Browse repository at this point
Copy the full SHA 4fd1cb8View commit details
Commits on Oct 7, 2024
-
Merge pull request lightningdevkit#330 from enigbe/feat-set-node-alias
Set node alias
Configuration menu - View commit details
-
Copy full SHA for c9ebeb6 - Browse repository at this point
Copy the full SHA c9ebeb6View commit details -
Revert "fix(test): Implement conditional channel opening based on ali…
…ases and addresses" This reverts commit 4fd1cb8 as unit tests need to be kept deterministic, i.e., opening announced channels is a deliberate choice on a per test case basis.
Configuration menu - View commit details
-
Copy full SHA for 11f9a89 - Browse repository at this point
Copy the full SHA 11f9a89View commit details -
We improve the docs a bit, highlight the requirements for node aliases, and that we'll only ever allow announcing channels if they are properly set.
Configuration menu - View commit details
-
Copy full SHA for b8e3d7a - Browse repository at this point
Copy the full SHA b8e3d7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c3232c - Browse repository at this point
Copy the full SHA 7c3232cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c36d4 - Browse repository at this point
Copy the full SHA 81c36d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d630365 - Browse repository at this point
Copy the full SHA d630365View commit details -
Replace
ChannelAnnouncementStatus
boilerplate with a simple bool flagWe drop the previously-introduced `ChannelAnnouncementStatus`/`ChannelAnnouncementBlocker` types. While informative, they were a bit too much boilerplate. Instead we opt to simply return a `bool` from `may_announce_channel`, and don't spawn the node announcment task to begin with if we're not configured properly.
Configuration menu - View commit details
-
Copy full SHA for 58f40b9 - Browse repository at this point
Copy the full SHA 58f40b9View commit details
Commits on Oct 8, 2024
-
Make announcing channels in tests a choice again
Previously, we always opened announced channels in tests, but it should be a deliberate choice depending on the scenario we're trying to test for.
Configuration menu - View commit details
-
Copy full SHA for 534b1ac - Browse repository at this point
Copy the full SHA 534b1acView commit details -
Drop
open_announced_channel
from README.. as we generally want to ~discourage users from arbitrarily opening announced channels. They really only should do so if they are willing and able to run a proper 24/7 forwarding node. And node operators will likely know what to look for in the API.
Configuration menu - View commit details
-
Copy full SHA for 85862f5 - Browse repository at this point
Copy the full SHA 85862f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58188b8 - Browse repository at this point
Copy the full SHA 58188b8View commit details
Commits on Oct 9, 2024
-
Prefactor: Move
src/wallet.rs
tosrc/wallet/mod.rs
We will be adding some wallet persistence/serialization related types and in a separate module down the line, so here we perepare for it by already moving the wallet code to a module directory.
Configuration menu - View commit details
-
Copy full SHA for a225e1e - Browse repository at this point
Copy the full SHA a225e1eView commit details -
... we update LDK, lightning-liquidity, BDK, rust-bitcoin, rust-esplora-client, rust-electrum-client, etc.
Configuration menu - View commit details
-
Copy full SHA for d0de144 - Browse repository at this point
Copy the full SHA d0de144View commit details -
Merge pull request lightningdevkit#358 from tnull/2024-08-upgrade-to-…
…LDK-0.0.124-BDK-1.0
Configuration menu - View commit details
-
Copy full SHA for 3f1c842 - Browse repository at this point
Copy the full SHA 3f1c842View commit details
Commits on Oct 14, 2024
-
... which somehow was removed as part of the recent refactoring.
Configuration menu - View commit details
-
Copy full SHA for 176b5c6 - Browse repository at this point
Copy the full SHA 176b5c6View commit details -
Merge pull request lightningdevkit#373 from tnull/2024-10-stop-block-…
…in-place Re-add `block_in_place` in `stop`
Configuration menu - View commit details
-
Copy full SHA for 6372475 - Browse repository at this point
Copy the full SHA 6372475View commit details
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 789dbdb - Browse repository at this point
Copy the full SHA 789dbdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ef3c3e - Browse repository at this point
Copy the full SHA 3ef3c3eView commit details -
Merge pull request lightningdevkit#375 from G8XSU/ldk-125-upgrade
Upgrade LDK to v0.0.125
Configuration menu - View commit details
-
Copy full SHA for 0c816c8 - Browse repository at this point
Copy the full SHA 0c816c8View commit details -
.. which will allow us to switch between different chain sources.
Configuration menu - View commit details
-
Copy full SHA for 0265c2d - Browse repository at this point
Copy the full SHA 0265c2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for da65835 - Browse repository at this point
Copy the full SHA da65835View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4da77eb - Browse repository at this point
Copy the full SHA 4da77ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9096382 - Browse repository at this point
Copy the full SHA 9096382View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3105a28 - Browse repository at this point
Copy the full SHA 3105a28View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd0c26f - Browse repository at this point
Copy the full SHA fd0c26fView commit details -
Move syncing tasks to
ChainSource
.. which also gives us the opportunity to simplify and DRY up the logic between background and manual syncing.
Configuration menu - View commit details
-
Copy full SHA for d66edd4 - Browse repository at this point
Copy the full SHA d66edd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 835baf4 - Browse repository at this point
Copy the full SHA 835baf4View commit details -
Introduce persisted
NodeMetrics
structPreviously, we persisted some of the `latest_` fields exposed via `NodeStatus`. Here, we now refactor this via a persisted `NodeMetrics` struct which allows to persist more fields across restarts. In particular, we now persist the latest time we sync the on-chain wallet, resulting in only doing a full scan on first initialization, and doing incremental syncing afterwards. As both of these operations are really really lightweight, we don't bother to migrate the old persisted timestamps for RGS updates and node announcement broadcasts over to the new data format.
Configuration menu - View commit details
-
Copy full SHA for 4ccc93a - Browse repository at this point
Copy the full SHA 4ccc93aView commit details -
Prefactor: Expose config objects via
config
module.. to further de-clutter the top-level docs.
Configuration menu - View commit details
-
Copy full SHA for 66ca6be - Browse repository at this point
Copy the full SHA 66ca6beView commit details -
Prefactor: Move
ChannelConfig
toconfig
.. to also expose it via the `config` module rather than at the top-level docs.
Configuration menu - View commit details
-
Copy full SHA for ad60e07 - Browse repository at this point
Copy the full SHA ad60e07View commit details -
Move Esplora-specific sync options to dedicated config
.. as other upcoming chain sources might not have the same config options such as syncing intervals, or at least not with the same semantics.
Configuration menu - View commit details
-
Copy full SHA for 94ff68f - Browse repository at this point
Copy the full SHA 94ff68fView commit details -
Merge pull request lightningdevkit#365 from tnull/2024-10-chain-sourc…
…e-refactor Refactor syncing and introduce `ChainSource`
Configuration menu - View commit details
-
Copy full SHA for 26e61e8 - Browse repository at this point
Copy the full SHA 26e61e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61673b1 - Browse repository at this point
Copy the full SHA 61673b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e93628 - Browse repository at this point
Copy the full SHA 7e93628View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07c34ef - Browse repository at this point
Copy the full SHA 07c34efView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf74365 - Browse repository at this point
Copy the full SHA bf74365View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6eebd00 - Browse repository at this point
Copy the full SHA 6eebd00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 374dd60 - Browse repository at this point
Copy the full SHA 374dd60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fa90f0 - Browse repository at this point
Copy the full SHA 8fa90f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7beff0 - Browse repository at this point
Copy the full SHA b7beff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e6e935 - Browse repository at this point
Copy the full SHA 8e6e935View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7befec7 - Browse repository at this point
Copy the full SHA 7befec7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5594560 - Browse repository at this point
Copy the full SHA 5594560View commit details -
Retry more aggressively in VssStore.
Since a failed persistence might cause LDK to panic.
Configuration menu - View commit details
-
Copy full SHA for 2c824ff - Browse repository at this point
Copy the full SHA 2c824ffView commit details
Commits on Oct 16, 2024
-
Merge pull request lightningdevkit#374 from G8XSU/replay-events
Replay events on event handling failures due to persistence failures.
Configuration menu - View commit details
-
Copy full SHA for cffdf7e - Browse repository at this point
Copy the full SHA cffdf7eView commit details -
.. which we'll use to feed blocks to it in following commits.
Configuration menu - View commit details
-
Copy full SHA for 0bec579 - Browse repository at this point
Copy the full SHA 0bec579View commit details -
Configuration menu - View commit details
-
Copy full SHA for c59d781 - Browse repository at this point
Copy the full SHA c59d781View commit details -
We first initialize by synchronizing all `Listen` implementations, and then head into a loop continuously polling our RPC `BlockSource`. We also implement a `BoundedHeaderCache` to limit in-memory footprint.
Configuration menu - View commit details
-
Copy full SHA for ab5a620 - Browse repository at this point
Copy the full SHA ab5a620View commit details -
Configuration menu - View commit details
-
Copy full SHA for b756d79 - Browse repository at this point
Copy the full SHA b756d79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 935a17e - Browse repository at this point
Copy the full SHA 935a17eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce3606e - Browse repository at this point
Copy the full SHA ce3606eView commit details -
Retrieve and apply unconfirmed transactions from the mempool
.. to allow the on-chain wallet to detect what's inflight.
Configuration menu - View commit details
-
Copy full SHA for 8e1dda1 - Browse repository at this point
Copy the full SHA 8e1dda1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6da0b98 - Browse repository at this point
Copy the full SHA 6da0b98View commit details -
Only enforce successful fee rate cache updates on mainnet
This behavior mirrors what we do in the Esplora case: we only enforce successful fee rate updates on mainnet. On regtest/signet/testnet we will just skip (i.e. return `Ok(())`) if we fail to retrieve the updates (e.g., when bitcoind's `estimatesmartfee` isn't sufficiently populated) and will either keep previously-retrieved values or worst case fallback to the fallback defaults.
Configuration menu - View commit details
-
Copy full SHA for e268b80 - Browse repository at this point
Copy the full SHA e268b80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a65272 - Browse repository at this point
Copy the full SHA 0a65272View commit details -
Drop flaky
connect_to_public_esplora
test.. as it regularly makes CI fail and doesn't provide us anything really.
Configuration menu - View commit details
-
Copy full SHA for 4a086c3 - Browse repository at this point
Copy the full SHA 4a086c3View commit details -
Relax
onchain_fee_buffer
in tests slightly.. to account for slight differences in fee rate estmations between chain sources.
Configuration menu - View commit details
-
Copy full SHA for f165c74 - Browse repository at this point
Copy the full SHA f165c74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c629f2 - Browse repository at this point
Copy the full SHA 7c629f2View commit details -
Merge pull request lightningdevkit#370 from tnull/2024-10-add-bitcoin…
…d-support Add bitcoind RPC support
Configuration menu - View commit details
-
Copy full SHA for af5d85a - Browse repository at this point
Copy the full SHA af5d85aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef9810c - Browse repository at this point
Copy the full SHA ef9810cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0a14d2 - Browse repository at this point
Copy the full SHA d0a14d2View commit details -
Merge pull request lightningdevkit#368 from G8XSU/inc-retries
Retry more aggressively in VssStore.
Configuration menu - View commit details
-
Copy full SHA for ca6c2fa - Browse repository at this point
Copy the full SHA ca6c2faView commit details
Commits on Oct 17, 2024
-
Merge pull request lightningdevkit#379 from tnull/2024-10-upgrade-uniffi
Upgrade UniFFI to 0.27.3
Configuration menu - View commit details
-
Copy full SHA for 137bfff - Browse repository at this point
Copy the full SHA 137bfffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2646629 - Browse repository at this point
Copy the full SHA 2646629View commit details -
Default to LnUrlJWT auth for using VSS.
build_with_vss_store now uses LNURL-Auth as the default method for authentication/authorization.
Configuration menu - View commit details
-
Copy full SHA for ffea164 - Browse repository at this point
Copy the full SHA ffea164View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf91516 - Browse repository at this point
Copy the full SHA cf91516View commit details -
Merge pull request lightningdevkit#369 from G8XSU/vss-lnauth
Enable using VssStore with VssHeaderProvider.
Configuration menu - View commit details
-
Copy full SHA for 9ba95be - Browse repository at this point
Copy the full SHA 9ba95beView commit details -
Use KeyObfuscator in VssStore.
For client-side key obfuscation, improving privacy and security.
Configuration menu - View commit details
-
Copy full SHA for 0ae0fc1 - Browse repository at this point
Copy the full SHA 0ae0fc1View commit details -
Merge pull request lightningdevkit#378 from G8XSU/vss-obfu
Use KeyObfuscator in VssStore.
Configuration menu - View commit details
-
Copy full SHA for 5909063 - Browse repository at this point
Copy the full SHA 5909063View commit details -
Configuration menu - View commit details
-
Copy full SHA for b05d99b - Browse repository at this point
Copy the full SHA b05d99bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bb4855 - Browse repository at this point
Copy the full SHA 5bb4855View commit details -
Merge pull request lightningdevkit#376 from G8XSU/vss-bindings
Launch VSS, Expose build_with_vss* methods in bindings.
Configuration menu - View commit details
-
Copy full SHA for 651f837 - Browse repository at this point
Copy the full SHA 651f837View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfb8565 - Browse repository at this point
Copy the full SHA cfb8565View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff47a97 - Browse repository at this point
Copy the full SHA ff47a97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86b22ef - Browse repository at this point
Copy the full SHA 86b22efView commit details -
Configuration menu - View commit details
-
Copy full SHA for db66cb9 - Browse repository at this point
Copy the full SHA db66cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae579e - Browse repository at this point
Copy the full SHA 3ae579eView commit details
Commits on Oct 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3684f29 - Browse repository at this point
Copy the full SHA 3684f29View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9e6fba - Browse repository at this point
Copy the full SHA a9e6fbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 296f390 - Browse repository at this point
Copy the full SHA 296f390View commit details -
Configuration menu - View commit details
-
Copy full SHA for c571960 - Browse repository at this point
Copy the full SHA c571960View commit details -
Configuration menu - View commit details
-
Copy full SHA for e031651 - Browse repository at this point
Copy the full SHA e031651View commit details
Commits on Oct 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d4a2f2c - Browse repository at this point
Copy the full SHA d4a2f2cView commit details
Commits on Oct 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec26f06 - Browse repository at this point
Copy the full SHA ec26f06View commit details
Commits on Oct 28, 2024
-
Merge pull request lightningdevkit#387 from whfuyn/fix-invalid-witnes…
…s-program-len Fix invalid witness program length
Configuration menu - View commit details
-
Copy full SHA for bcea1c2 - Browse repository at this point
Copy the full SHA bcea1c2View commit details -
Add comments and debug assertions for
list_unspent_utxos
We previously erroneously included the version byte trying to construct a `WitnessProgram`, which was was recently fixed. Here we add some more comments to the code explaining what went wrong, and also add a debug assertion checking `list_unspent_utxos` retrieves at least one `Utxo` when we see any confirmed balances.
Configuration menu - View commit details
-
Copy full SHA for 3b5f00b - Browse repository at this point
Copy the full SHA 3b5f00bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c228e7f - Browse repository at this point
Copy the full SHA c228e7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e177de5 - Browse repository at this point
Copy the full SHA e177de5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a7a591 - Browse repository at this point
Copy the full SHA 8a7a591View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2156611 - Browse repository at this point
Copy the full SHA 2156611View commit details
Commits on Nov 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b4dfcea - Browse repository at this point
Copy the full SHA b4dfceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd2cd4 - Browse repository at this point
Copy the full SHA 9bd2cd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8d0557 - Browse repository at this point
Copy the full SHA d8d0557View commit details -
Configuration menu - View commit details
-
Copy full SHA for 500df72 - Browse repository at this point
Copy the full SHA 500df72View commit details
Commits on Nov 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1b02d2b - Browse repository at this point
Copy the full SHA 1b02d2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c70be7 - Browse repository at this point
Copy the full SHA 0c70be7View commit details