mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
fix: remove wallet inkey
This commit is contained in:
parent
fdfd9b1d9f
commit
00ba09d201
2 changed files with 0 additions and 15 deletions
|
@ -317,16 +317,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
startPaymentNotifier() {
|
|
||||||
this.cancelListener()
|
|
||||||
if (!this.lnbitswallet) return
|
|
||||||
this.cancelListener = LNbits.events.onInvoicePaid(
|
|
||||||
this.wallet,
|
|
||||||
payment => {
|
|
||||||
this.checkInvoiceBalance()
|
|
||||||
}
|
|
||||||
)
|
|
||||||
},
|
|
||||||
checkBalances: async function () {
|
checkBalances: async function () {
|
||||||
if (this.charge.hasStaleBalance) return
|
if (this.charge.hasStaleBalance) return
|
||||||
try {
|
try {
|
||||||
|
@ -432,10 +422,6 @@
|
||||||
else this.payOnchain()
|
else this.payOnchain()
|
||||||
await this.checkBalances()
|
await this.checkBalances()
|
||||||
|
|
||||||
// empty for onchain
|
|
||||||
this.wallet.inkey = '{{ wallet_inkey }}'
|
|
||||||
this.startPaymentNotifier()
|
|
||||||
|
|
||||||
if (!this.charge.paid) {
|
if (!this.charge.paid) {
|
||||||
this.loopRefresh()
|
this.loopRefresh()
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,6 @@ async def display(request: Request, charge_id: str):
|
||||||
{
|
{
|
||||||
"request": request,
|
"request": request,
|
||||||
"charge_data": charge.dict(),
|
"charge_data": charge.dict(),
|
||||||
"wallet_inkey": inkey,
|
|
||||||
"mempool_endpoint": mempool_endpoint,
|
"mempool_endpoint": mempool_endpoint,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue