Skip to content

Commit 96679ff

Browse files
authored
Merge pull request #178 from TheBlueMatt/0.2
[0.2] Update to LDK 0.2
2 parents 4411b11 + ce46a5c commit 96679ff

File tree

1,875 files changed

+525265
-1048035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,875 files changed

+525265
-1048035
lines changed

c_sharp/bindings.c

Lines changed: 74353 additions & 65877 deletions
Large diffs are not rendered by default.

c_sharp/bindings.c.body

Lines changed: 74353 additions & 65877 deletions
Large diffs are not rendered by default.

c_sharp/src/org/ldk/enums/BlindedFailure.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ namespace org { namespace ldk { namespace enums {/**
55
public enum BlindedFailure {
66
/**
77
* This HTLC is being failed backwards by the introduction node, and thus should be failed with
8-
* [`msgs::UpdateFailHTLC`] and error code `0x8000|0x4000|24`.
8+
* [`msgs::UpdateFailHTLC`] and error code [`LocalHTLCFailureReason::InvalidOnionBlinding`].
99
*/
1010
LDKBlindedFailure_FromIntroductionNode,
1111
/**
1212
* This HTLC is being failed backwards by a blinded node within the path, and thus should be
13-
* failed with [`msgs::UpdateFailMalformedHTLC`] and error code `0x8000|0x4000|24`.
13+
* failed with [`msgs::UpdateFailMalformedHTLC`] and error code
14+
* [`LocalHTLCFailureReason::InvalidOnionBlinding`].
1415
*/
1516
LDKBlindedFailure_FromBlindedNode,
1617
}} } }

c_sharp/src/org/ldk/enums/Bolt11SemanticError.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ public enum Bolt11SemanticError {
3232
* The invoice's features are invalid
3333
*/
3434
LDKBolt11SemanticError_InvalidFeatures,
35-
/**
36-
* The recovery id doesn't fit the signature/pub key
37-
*/
38-
LDKBolt11SemanticError_InvalidRecoveryId,
3935
/**
4036
* The invoice's signature is invalid
4137
*/

c_sharp/src/org/ldk/enums/Bolt12SemanticError.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public enum Bolt12SemanticError {
2222
* The amount exceeded the total bitcoin supply or didn't match an expected amount.
2323
*/
2424
LDKBolt12SemanticError_InvalidAmount,
25+
/**
26+
* The currency code did not contain valid ASCII uppercase letters.
27+
*/
28+
LDKBolt12SemanticError_InvalidCurrencyCode,
2529
/**
2630
* An amount was provided but was not sufficient in value.
2731
*/

c_sharp/src/org/ldk/enums/ChannelMonitorUpdateStatus.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ public enum ChannelMonitorUpdateStatus {
2727
*
2828
* This includes performing any `fsync()` calls required to ensure the update is guaranteed to
2929
* be available on restart even if the application crashes.
30+
*
31+
* If you return this variant, you cannot later return [`InProgress`] from the same instance of
32+
* [`Persist`]/[`Watch`] without first restarting.
33+
*
34+
* [`InProgress`]: ChannelMonitorUpdateStatus::InProgress
35+
* [`Persist`]: chainmonitor::Persist
3036
*/
3137
LDKChannelMonitorUpdateStatus_Completed,
3238
/**
@@ -54,7 +60,12 @@ public enum ChannelMonitorUpdateStatus {
5460
* reliable, this feature is considered beta, and a handful of edge-cases remain. Until the
5561
* remaining cases are fixed, in rare cases, *using this feature may lead to funds loss*.
5662
*
63+
* If you return this variant, you cannot later return [`Completed`] from the same instance of
64+
* [`Persist`]/[`Watch`] without first restarting.
65+
*
5766
* [`InProgress`]: ChannelMonitorUpdateStatus::InProgress
67+
* [`Completed`]: ChannelMonitorUpdateStatus::Completed
68+
* [`Persist`]: chainmonitor::Persist
5869
*/
5970
LDKChannelMonitorUpdateStatus_InProgress,
6071
/**

c_sharp/src/org/ldk/enums/ConfirmationTarget.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ namespace org { namespace ldk { namespace enums {/**
44
*/
55
public enum ConfirmationTarget {
66
/**
7-
* The most aggressive (i.e. highest) feerate estimate available.
7+
* The most aggressive feerate estimate which we think is reasonable.
88
*
99
* This is used to sanity-check our counterparty's feerates and should be as conservative as
1010
* possible to ensure that we don't confuse a peer using a very conservative estimator for one
11-
* trying to burn channel balance to dust.
11+
* trying to burn channel balance to dust. To ensure that this is never lower than an honest
12+
* counterparty's feerate estimate you may wish to use a value which is higher than your
13+
* maximum feerate estimate, for example by adding a constant few-hundred or few-thousand
14+
* sats-per-kW.
1215
*/
1316
LDKConfirmationTarget_MaximumFeeEstimate,
1417
/**
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace org { namespace ldk { namespace enums {/**
2+
* Bit positions used in [`FundingLocked::retransmit_flags`] for requesting message retransmission.
3+
*/
4+
public enum FundingLockedFlags {
5+
/**
6+
* Retransmit `announcement_signatures`.
7+
*/
8+
LDKFundingLockedFlags_AnnouncementSignatures,
9+
}} } }

c_sharp/src/org/ldk/enums/LSPS1OrderState.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

c_sharp/src/org/ldk/enums/LSPS1PaymentState.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)