From 0e583a179d1149164f3ed4299a04e5a2dc4fba10 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 2 Sep 2025 20:50:18 +0200 Subject: [PATCH] Update CLN createrune & certificate help (#2478) * Update CLN createrune help * Update CLN certificate help --- wallets/client/components/form/index.js | 2 +- wallets/lib/protocols/clnRest.js | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/wallets/client/components/form/index.js b/wallets/client/components/form/index.js index a5c02fbc..a15e32f7 100644 --- a/wallets/client/components/form/index.js +++ b/wallets/client/components/form/index.js @@ -203,7 +203,7 @@ function WalletProtocolFormField ({ type, ...props }) { {_help.text} )} - + {upperHint ? {upperHint} : (!props.required ? 'optional' : null)} diff --git a/wallets/lib/protocols/clnRest.js b/wallets/lib/protocols/clnRest.js index f369601f..58116c8a 100644 --- a/wallets/lib/protocols/clnRest.js +++ b/wallets/lib/protocols/clnRest.js @@ -23,10 +23,10 @@ export default { type: 'password', help: [ 'We only accept runes that *only* allow `method=invoice`.', - 'Run this if you are on v23.08 to generate one:', - '```lightning-cli createrune restrictions=\'["method=invoice"]\'```', - 'Or this if you are on v24.11 or later:', + 'Run this to generate one if you are on v24.11 or later:', '```lightning-cli createrune restrictions=\'[["method=invoice"]]\'```', + 'Or this if you are on an earlier version:', + '```lightning-cli createrune restrictions=\'["method=invoice"]\'```', '[see `createrune` documentation](https://docs.corelightning.org/reference/createrune#restriction-format)' ], placeholder: 'S34KtUW-6gqS_hD_9cc_PNhfF-NinZyBOCgr1aIrark9NCZtZXRob2Q9aW52b2ljZQ==', @@ -39,9 +39,13 @@ export default { label: 'certificate', type: 'password', placeholder: 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNNVENDQWRpZ0F3SUJBZ0lRSHBFdFdrcGJwZHV4RVF2eVBPc3NWVEFLQmdncWhrak9QUVFEQWpBdk1SOHcKSFFZRFZRUUtFeFpzYm1RZ1lYVjBiMmRsYm1WeVlYUmxaQ0JqWlhKME1Rd3dDZ1lEVlFRREV3TmliMkl3SGhjTgpNalF3TVRBM01qQXhORE0wV2hjTk1qVXdNekF6TWpBeE5ETTBXakF2TVI4d0hRWURWUVFLRXhac2JtUWdZWFYwCmIyZGxibVZ5WVhSbFpDQmpaWEowTVF3d0NnWURWUVFERXdOaWIySXdXVEFUQmdjcWhrak9QUUlCQmdncWhrak8KUFFNQkJ3TkNBQVJUS3NMVk5oZnhqb1FLVDlkVVdDbzUzSmQwTnBuL1BtYi9LUE02M1JxbU52dFYvdFk4NjJJZwpSbE41cmNHRnBEajhUeFc2OVhIK0pTcHpjWDdlN3N0Um80SFZNSUhTTUE0R0ExVWREd0VCL3dRRUF3SUNwREFUCkJnTlZIU1VFRERBS0JnZ3JCZ0VGQlFjREFUQVBCZ05WSFJNQkFmOEVCVEFEQVFIL01CMEdBMVVkRGdRV0JCVDAKMnh3V25GeHRUNzI0MWxwZlNoNm9FWi9UMWpCN0JnTlZIUkVFZERCeWdnTmliMktDQ1d4dlkyRnNhRzl6ZElJRApZbTlpZ2d4d2IyeGhjaTF1TVMxaWIyS0NGR2h2YzNRdVpHOWphMlZ5TG1sdWRHVnlibUZzZ2dSMWJtbDRnZ3AxCmJtbDRjR0ZqYTJWMGdnZGlkV1pqYjI1dWh3Ui9BQUFCaHhBQUFBQUFBQUFBQUFBQUFBQUFBQUFCaHdTc0VnQUQKTUFvR0NDcUdTTTQ5QkFNQ0EwY0FNRVFDSUEwUTlkRXdoNXpPRnpwL3hYeHNpemh5SkxNVG5yazU1VWx1NHJPRwo4WW52QWlBVGt4U3p3Y3hZZnFscGx0UlNIbmd0NUJFcDBzcXlHL05nenBzb2pmMGNqQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K', - hint: [ - 'optional if from [CA](https://en.wikipedia.org/wiki/Certificate_authority) (e.g. voltage)', - 'hex or base64 encoded' + hint: 'hex or base64 encoded', + help: [ + 'CLN generates self-signed TLS certificates on startup.', + 'The certificate of the certificate authority (CA) is needed to use them.', + 'By default, it is saved at $HOME/.lightning/bitcoin/ca.pem.', + 'This is optional if you are using a common certificate authority (e.g. cloud-hosted platform like Voltage).', + '[see documentation](https://docs.corelightning.org/docs/grpc#generating-the-certificates)' ], validate: certValidator(), required: false