mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-13 12:42:47 +02:00
feat(funding): expose allow_self_payment for LND gRPC wallet (#4080)
Co-authored-by: ai-chen2050 <1033467071@qq.com>
This commit is contained in:
parent
368d0f548f
commit
91c8aa77ed
4 changed files with 8 additions and 2 deletions
|
|
@ -597,6 +597,7 @@ class LndGrpcFundingSource(LNbitsSettings):
|
|||
lnd_grpc_invoice_macaroon: str | None = Field(default=None)
|
||||
lnd_grpc_macaroon: str | None = Field(default=None)
|
||||
lnd_grpc_macaroon_encrypted: str | None = Field(default=None)
|
||||
lnd_grpc_allow_self_payment: bool = Field(default=False)
|
||||
|
||||
|
||||
class LnPayFundingSource(LNbitsSettings):
|
||||
|
|
|
|||
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -108,7 +108,11 @@ window.app.component('lnbits-admin-funding-sources', {
|
|||
lnd_grpc_macaroon: 'GRPC Macaroon',
|
||||
lnd_grpc_invoice_macaroon: 'GRPC Invoice Macaroon',
|
||||
lnd_grpc_admin_macaroon: 'GRPC Admin Macaroon',
|
||||
lnd_grpc_macaroon_encrypted: 'Encrypted Macaroon'
|
||||
lnd_grpc_macaroon_encrypted: 'Encrypted Macaroon',
|
||||
lnd_grpc_allow_self_payment: {
|
||||
advanced: true,
|
||||
label: 'Allow Self Payment'
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ class LndWallet(Wallet):
|
|||
no_inflight_updates=True,
|
||||
max_parts=16,
|
||||
time_pref=0.9,
|
||||
allow_self_payment=settings.lnd_grpc_allow_self_payment,
|
||||
)
|
||||
try:
|
||||
res: Payment = await self.router_rpc.SendPaymentV2(req).read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue