marginally improve the checkpending situation.
This commit is contained in:
@@ -52,13 +52,11 @@ window.LNbits = {
|
||||
getWallet: function (wallet) {
|
||||
return this.request('get', '/api/v1/wallet', wallet.inkey)
|
||||
},
|
||||
getPayments: function (wallet, checkPending) {
|
||||
var query_param = checkPending ? '?check_pending' : ''
|
||||
return this.request(
|
||||
'get',
|
||||
['/api/v1/payments', query_param].join(''),
|
||||
wallet.inkey
|
||||
)
|
||||
checkPending: function (wallet) {
|
||||
return this.request('post', '/api/v1/checkpending', wallet.inkey)
|
||||
},
|
||||
getPayments: function (wallet) {
|
||||
return this.request('get', '/api/v1/payments', wallet.inkey)
|
||||
},
|
||||
getPayment: function (wallet, paymentHash) {
|
||||
return this.request(
|
||||
|
||||
Reference in New Issue
Block a user