Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed May 25, 2023
1 parent 25080cd commit 931a167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/BTCPayServer.Lightning.CLightning/CLightningClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,11 @@ private async Task<PayResponse> PayAsync(string bolt11, PayInvoiceParams payPara
JObject extratlv = null;
if (isKeysend && payParams.CustomRecords != null)
{
var data = new JObject();
extratlv = new JObject();
foreach (var r in payParams.CustomRecords)
{
data.Add(r.Key.ToString(), Encoders.Hex.EncodeData(r.Value));
extratlv.Add(r.Key.ToString(), Encoders.Hex.EncodeData(r.Value));
}

var json = JsonConvert.SerializeObject(data);
extratlv = new JObject { { "133773310", Encoders.Hex.EncodeData(Encoding.Default.GetBytes(json)) } };
}
var opts = isKeysend
// keysend: destination msatoshi [label] [maxfeepercent] [retry_for] [maxdelay] [exemptfee] [extratlvs]
Expand Down
2 changes: 2 additions & 0 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ services:
dev-fast-gossip
dev-bitcoind-poll=1
database-upgrade=true
accept-htlc-tlv-types=696969,112111100
ports:
- "48532:9835" # api port
expose:
Expand Down Expand Up @@ -78,6 +79,7 @@ services:
dev-fast-gossip
dev-bitcoind-poll=1
database-upgrade=true
accept-htlc-tlv-types=696969,112111100
ports:
- "42549:9835" # api port
expose:
Expand Down

0 comments on commit 931a167

Please sign in to comment.