multi: add IsBlinded to lnrpc.Invoice for nicer UX

The BlindedPathConfig struct is nice for invoice creation but when we
use the Invoice message for viewing an invoice, it would be nicer to see
an "is_blinded" field.
This commit is contained in:
Elle Mouton
2024-08-08 14:18:07 +02:00
parent 5a84ca8032
commit 5e84ba92af
9 changed files with 1226 additions and 1175 deletions

View File

@@ -3843,7 +3843,14 @@ message Invoice {
Signals that the invoice should include blinded paths to hide the true
identity of the recipient.
*/
BlindedPathConfig blinded_path_config = 29;
bool is_blinded = 29;
/*
Config values to use when creating blinded paths for this invoice. These
can be used to override the defaults config values provided in by the
global config. This field is only used if is_blinded is true.
*/
BlindedPathConfig blinded_path_config = 30;
}
message BlindedPathConfig {