Commit Graph

785 Commits

Author SHA1 Message Date
fiatjaf
11679a4fa7 actually do the fee abs() thing on the balances view. 2021-03-31 20:22:34 -03:00
Ben Arc
045e069312 All fees are negative 2021-04-01 00:02:24 +01:00
Ben Arc
0db516b6e0 watchonly working, satspay broken 2021-03-31 23:49:36 +01:00
Ben Arc
b05b8c0115 Merge remote-tracking branch 'origin/master' into watchonly 2021-03-31 10:43:55 +01:00
fiatjaf
08d124c62a nicer print checking status. 2021-03-28 01:34:37 -03:00
fiatjaf
e112258c39 improve checking routine.
check pending invoices only once on startup,
then check outgoing payments every 30 minutes,
and delete outgoing payments that return False (meaning they have failed).

also fix a bug on sparko.
2021-03-28 00:11:45 -03:00
fiatjaf
b2efd71d3c allow extensions to hide themselves. 2021-03-27 22:49:53 -03:00
fiatjaf
61c8d70fe7 fix: account for withdraw link not found on two places. 2021-03-27 21:26:56 -03:00
fiatjaf
3215b5d2bb catch some errors on spark. 2021-03-27 21:24:08 -03:00
fiatjaf
574358a118 fix: lnurlpay comment was being parsed as number. 2021-03-26 21:10:15 -03:00
fiatjaf
85011d23c3 fix sqlite database locked issues by using an async lock on the database and requiring explicit transaction control (or each command will be its own transaction). 2021-03-26 19:10:30 -03:00
fiatjaf
9cc7052920 actually wait 2 hours between each checkpending routine. 2021-03-24 10:15:00 -03:00
fiatjaf
6164b9d27e exit the app when we cannot connect to a backend. 2021-03-24 09:49:43 -03:00
fiatjaf
a787d60d93 be extra safe when failing a payment if pay_invoice throws on sparko. 2021-03-24 02:02:54 -03:00
fiatjaf
aabe3364f4 only check pending from the last 15 days. 2021-03-24 01:41:19 -03:00
fiatjaf
d4d069fc77 make all methods from all wallets async. 2021-03-24 01:01:09 -03:00
fiatjaf
42bd5ea989 remove exception to black line-length and reformat. 2021-03-24 00:40:32 -03:00
Ben Arc
3333f1f3f3 Bug in withdraw hash checker 2021-03-23 11:40:03 +00:00
fiatjaf
e6ea77e682 catch exception on invalid hash passed to sparko. 2021-03-21 18:12:26 -03:00
fiatjaf
8e62d9287d actually repeat the check once every 5 minutes just to be sure.
also because the stream doesn't cover outgoing payments.
2021-03-21 17:59:59 -03:00
fiatjaf
7e4a42e7ff stop doing the check_invoices thing on each call. do it once on lnbits starup and then rely on the invoices listener. 2021-03-21 17:57:33 -03:00
fiatjaf
f27c2ebc21 marginally improve the checkpending situation. 2021-03-21 17:11:00 -03:00
Ben Arc
fa383ced1c Changed api to check lnurl exists and checking hash sent 2021-03-20 01:06:08 +00:00
benarc
1e9151cedc ran prettier on captcha 2021-03-17 19:59:00 +00:00
benarc
20ef9f92a1 Ran black on bleskomat 2021-03-17 19:54:17 +00:00
benarc
c86bd74506 edited api 2021-03-17 19:32:37 +00:00
benarc
ad545e7fe1 prettier/black 2021-03-17 19:27:52 +00:00
benarc
66cde0154b api docs 2021-03-17 18:02:52 +00:00
benarc
422298948c api doc 2021-03-17 17:58:03 +00:00
benarc
09f89d07dd API docs 2021-03-17 17:57:12 +00:00
benarc
f42dab5e30 Added api docs 2021-03-17 17:55:00 +00:00
benarc
86744ebced Bug 2021-03-17 16:56:23 +00:00
benarc
514329045f Should work 2021-03-17 16:33:12 +00:00
benarc
7cd3487bc9 Added hash check to db 2021-03-17 15:38:32 +00:00
fiatjaf
1a460a2ce5 fix issue #159 2021-03-17 09:03:07 -03:00
benarc
b5c4fe905f Extension summary must be small 2021-03-16 13:38:42 +00:00
fiatjaf
d69c5aa2b1
Merge pull request #152 from lnbits/LNURLimg 2021-03-14 22:02:43 -03:00
fiatjaf
b5ea8e2546
Merge pull request #136 from pseudozach/master 2021-03-14 21:59:33 -03:00
fiatjaf
8df4dd702d
Merge pull request #154 from lnbits/offlineshop 2021-03-14 21:55:52 -03:00
fiatjaf
1bc59974a8 also support all currencies in lnurlp. 2021-03-14 21:50:05 -03:00
fiatjaf
0bc66ea150 support all the currencies. 2021-03-14 20:58:49 -03:00
fiatjaf
adc3e62573 abstract exchange rates code into a "util". 2021-03-14 20:43:39 -03:00
fiatjaf
5142f1e29f reduce image quality even more. 2021-03-14 16:47:01 -03:00
fiatjaf
d13ca2afdb round USD rate to satoshis. 2021-03-14 14:34:47 -03:00
fiatjaf
a653a5327b support totp confirmation method. 2021-03-14 14:30:08 -03:00
fiatjaf
d9b9d1e9b2 more info on confirmation code screen. 2021-03-14 13:01:19 -03:00
fiatjaf
4c8ce1bfed prettier changes its rules everyday. 2021-03-07 19:20:39 -03:00
fiatjaf
1630a28da0 prettier and black stuff. 2021-03-07 19:18:02 -03:00
fiatjaf
80e7c2c50f
Merge pull request #146 from chill117/bleskomat-extension
Bleskomat extension for lnbits
2021-03-07 19:10:31 -03:00
fiatjaf
c7717a611a UI to change the wordlist. 2021-03-07 17:03:01 -03:00
fiatjaf
773103f893 instructions and API docs. 2021-03-07 16:39:34 -03:00
fiatjaf
63ae553565 QR codes, printing, success-action and other fixes. 2021-03-07 16:13:20 -03:00
fiatjaf
cda0819f64 improve and finish basic UI. 2021-03-07 14:41:47 -03:00
fiatjaf
732d06c1e5 basic offlineshop functionality. 2021-03-07 00:08:36 -03:00
benarc
f571f5f840 Added some tooltips 2021-03-03 14:22:39 +00:00
benarc
d0039ca71c black format 2021-03-03 13:59:31 +00:00
benarc
33a90a8de3 prettier 2021-03-03 13:51:31 +00:00
benarc
1f4218d5c2 Changed "LNURL voucher" to the LNURL title 2021-03-03 13:42:36 +00:00
benarc
4fee785229 Changed "LNURL voucher" to the LNURL title 2021-03-03 13:36:26 +00:00
benarc
97e519d569 Deleted some prints 2021-02-26 18:52:45 +00:00
benarc
3bfca5b7b7 Image loading as SVG 2021-02-26 18:23:17 +00:00
benarc
13f440d517 added pypng 2021-02-26 17:54:50 +00:00
benarc
2d4e9202f1 return img 2021-02-26 17:48:51 +00:00
benarc
d913ab1306 link broken 2021-02-26 17:44:32 +00:00
benarc
0ed281e0fb bug 2021-02-26 17:42:26 +00:00
benarc
c03c463171 Added LNURLw as image view 2021-02-26 16:54:57 +00:00
benarc
569f43fe81 Satspay display link 2021-02-23 20:42:24 +00:00
benarc
5c894ff707 Adding satspay docs, making same as btcpay 2021-02-23 19:35:17 +00:00
benarc
d95159d73b BIP44/49/84 supported 💪 2021-02-23 19:13:21 +00:00
benarc
198cff8449 Loads now, but still broken 2021-02-23 15:26:17 +00:00
benarc
81326b2368 Still have broken watchonly, but addresses added 2021-02-23 15:19:51 +00:00
benarc
da20588c84 Trying to restore addresses functions, broken 2021-02-23 14:47:49 +00:00
benarc
be6ee64b4e Cleaning up watchonly 2021-02-23 14:31:05 +00:00
benarc
6e4f8431b7 Auto stash before checking out "HEAD" 2021-02-22 01:14:46 +00:00
benarc
a93903a183 added address dialogue 2021-02-22 01:14:28 +00:00
benarc
385406a78a Watchonly statspay basic gui working 2021-02-22 00:45:52 +00:00
benarc
ecfcc167f0 Splitting into x2 extensions
Splitting extension into 2, SatsPay Server, a BTCPay Server type extension, and WatchOnly
2021-02-21 17:53:43 +00:00
benarc
9724f33111 small bug 2021-02-21 17:00:13 +00:00
benarc
9c8836096c switched requests for httpx 2021-02-21 13:25:54 +00:00
Arc
ca60893701
Merge pull request #151 from lnbits/master
Bring branch up to date
2021-02-21 13:14:42 +00:00
Charles Hill
dbe028e1eb
Bleskomat extension for lnbits 2021-02-15 12:53:02 +01:00
fiatjaf
ec193ca697 put export-with-qr-code on a toggleable section. 2021-02-13 21:45:22 -03:00
fiatjaf
ea51af90d0 remove "Renew Keys" button.
it wasn't doing anything.
closes https://github.com/lnbits/lnbits/issues/147
2021-02-13 21:45:22 -03:00
Pac
378e408dca Update wallet.html 2021-02-13 21:45:22 -03:00
Pac
e251291076 Display QRcode for easy wallet export
This adds a QRcode of the "url_root/wallet?usr=#####&wal=####" so that
the user can create a wallet on desktop and easily use it on his phone.
Also, in a use case where the <User Manager> extension is used, the
manager can create a wallet and show the QRcode for the user to take it
(e.g. in a hotel front desk the clerk creates it and the user takes it
in his phone browser, to pay for laundry, massage, soda machine...)
2021-02-13 21:45:22 -03:00
fiatjaf
88eb8e0e78 fix curl examples in extensions, path was duplicating the plugin names. 2021-02-07 08:23:01 -03:00
fiatjaf
9c126696fc delete pending payments after WALLET.pay_invoice fails.
fixes https://github.com/lnbits/lnbits/issues/138
2021-01-05 22:29:02 -03:00
fiatjaf
9dd040186d fix fee on lntxbot wallets. 2021-01-05 19:50:06 -03:00
fiatjaf
45148d285e Revert "Fixed fee deduction "
This reverts commit 14b6e21a02.
2021-01-05 19:49:27 -03:00
Arc
e96c92e6df
Merge pull request #135 from grmkris/extensions/subdomains
subdomains extension
2021-01-05 22:35:06 +00:00
benarc
14b6e21a02 Fixed fee deduction 2021-01-05 21:54:58 +00:00
Kristjan
2a25932a85 refactored docs 2021-01-03 16:37:13 +01:00
Kristjan
d811d69dac fixed bug on frontend where user couldn't updated information about a domain 2021-01-03 16:15:03 +01:00
Kristjan
b6cb305e5c black formatting 2021-01-03 11:28:23 +01:00
Kristjan
babaa4459e decided to remove IP and subdomain validations.. we run dry-run to cloudflare anyway so those 2 checks are reduntant 2021-01-03 11:27:45 +01:00
Kristjan
f45aadaafe added checks to the cloudflare if the domain can be created; code refactoring - moved calls to cloudflare to seperate file 2021-01-03 11:22:42 +01:00
Kristjan
f6010bc139 black formatting 2021-01-03 00:31:02 +01:00
Kristjan
33b48341f1 checks before creating new subdomain 2021-01-03 00:26:33 +01:00
Kristjan
dc4a786dda black formatting 2021-01-02 22:56:36 +01:00
Kristjan
10414be0d2 now payments are finalized and dns registered when the event happens instead when user polls the backend 2021-01-02 22:55:52 +01:00