Skip to content
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

Support private routing hints #136

Open
ruifm opened this issue Feb 28, 2023 · 0 comments
Open

Support private routing hints #136

ruifm opened this issue Feb 28, 2023 · 0 comments

Comments

@ruifm
Copy link

ruifm commented Feb 28, 2023

According the lnd rest api docs for AddInvoice it seems to be as easy as adding private=true in the rest api request.

This is currently not being done:

SatSale/node/lnd.py

Lines 122 to 136 in 752215f

def create_lnd_invoice(
self,
btc_amount: float,
memo: str = None,
description_hash: str = None,
expiry: int = 3600,
) -> Tuple[str, str]:
# Multiplying by 10^8 to convert to satoshi units
sats_amount = int(float(btc_amount) * 10 ** 8)
res = self.lnd.add_invoice(
value=sats_amount, memo=memo, description_hash=description_hash, expiry=expiry
)
lnd_invoice = json.loads(MessageToJson(res))
return lnd_invoice["paymentRequest"], lnd_invoice["rHash"]

Maybe it could be behind a config option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant