-
Notifications
You must be signed in to change notification settings - Fork 22
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
odds and ends: tls SAN cfg and payer note option #144
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #144 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 1 1
Lines 97 97
======================================
Misses 97 97 ☔ View full report in Codecov by Sentry. |
The TLS IP stuff is working well. One observation with it was that the TLS cert was automatically regenerated when we restarted with the ip settings in place. It might be an idea to follow the model of how this works in lnd - which is to only regenerate the cert after deleting the existing ones from the file system, regardless of wether the startup options have changed. This provides a level of stability ensuring that in use tls certs don't get invalidated without explicit action to trigger that (deleting the old ones and restarting the node), |
@mrfelton I just did some tests, and I believe that is how it works? It should only regenerate the certificate if either the key or certificate in ~/.lndk have been deleted: Line 335 in c505ca4
|
Retested and confirmed that the cert does only get regenerated if it's deleted from the disk. |
I added an extra commit in orbitalturtle#10 which adds the payer note into the fetch/decode invoice response data. |
Looks like when no payer note is provided, it's actually setting the payer note on the invoice request as an empty string which I don't think is correct. The resulting invoice has |
6736670
to
454666c
Compare
454666c
to
b3f9c30
Compare
@mrfelton Yeah good point. I wasn't sure how to do that without getting a move error, but Jeff from LDK showed me how they do it on their end. Just pushed up a version with that change. Just added the payer_note to the decoded invoice as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me from non-API perspective.
@@ -20,6 +21,7 @@ message PayOfferResponse { | |||
message GetInvoiceRequest { | |||
string offer = 1; | |||
optional uint64 amount = 2; | |||
optional string payer_note = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually been a while since I wrote protos but I'm quite glad they brought back optional
fields to v3 finally :)
This PR includes a few smaller requested changes in one PR:
tls-ip
config option for specifying other ip addresses/domains. Multiple can be added if separated by commas.pay-offer
andget-invoice
commands.Closes #134.