fix: remove wallet inkey

This commit is contained in:
Vlad Stan 2022-11-24 17:08:32 +02:00 committed by dni ⚡
parent 948e7f0a4e
commit 13203055e9
2 changed files with 0 additions and 15 deletions

View File

@ -317,16 +317,6 @@
}
},
methods: {
startPaymentNotifier() {
this.cancelListener()
if (!this.lnbitswallet) return
this.cancelListener = LNbits.events.onInvoicePaid(
this.wallet,
payment => {
this.checkInvoiceBalance()
}
)
},
checkBalances: async function () {
if (this.charge.hasStaleBalance) return
try {
@ -432,10 +422,6 @@
else this.payOnchain()
await this.checkBalances()
// empty for onchain
this.wallet.inkey = '{{ wallet_inkey }}'
this.startPaymentNotifier()
if (!this.charge.paid) {
this.loopRefresh()
}

View File

@ -41,7 +41,6 @@ async def display(request: Request, charge_id: str):
{
"request": request,
"charge_data": charge.dict(),
"wallet_inkey": inkey,
"mempool_endpoint": mempool_endpoint,
},
)