Commit Graph
100 Commits
Author SHA1 Message Date
fiatjaf 1c0a4e252a explicit postgres type numbers in anti-conversion table. 2021-08-11 22:53:34 -03:00
fiatjaf 8f2b42309d revert b7ed7fab59 2021-08-11 22:53:11 -03:00
fiatjaf 26b3599325 fix insertion bugs/incompatibilities with lastrowid stuff. 2021-08-11 22:19:27 -03:00
fiatjaf 6312b5b564 fix compatibility on REFERENCES statement on streamalerts table creation. 2021-08-11 10:23:02 -03:00
fiatjaf b96a6661f8 fix "requesting" display for addresses. 2021-08-10 08:11:51 -03:00
fiatjaf 9c31d06112 remove quotes from streamalerts table names. 2021-08-10 07:40:04 -03:00
fiatjaf a019d29b9b support pay-to-identifier. 2021-08-10 07:25:51 -03:00
fiatjaf 2bcc01d640 streamalerts: fix db queries so postgres can work. 2021-08-09 20:29:37 -03:00
fiatjaf e0496fb244 fix postgres type translation bug and add some logs. 2021-08-01 10:30:27 -03:00
fiatjaf 83137ba0a0 print handled exceptions. 2021-07-31 08:15:28 -03:00
fiatjaf b1b487bc48 catch everything and restart in main background tasks. 2021-07-30 19:29:54 -03:00
fiatjaf 2b82985d36 fix issue #273 2021-07-20 16:31:09 -03:00
fiatjaf b7332bea64 fix example extension migration template. 2021-07-03 17:57:09 -03:00
fiatjaf 81e3424232 add hivemind placeholder extension. 2021-07-03 17:56:55 -03:00
fiatjaf 5ac81a7849 update material fonts. 2021-07-03 17:44:46 -03:00
fiatjaf f6e255d9be remove one extra core.schema. 2021-07-03 15:39:58 -03:00
fiatjaf 50e3d3803b add more db instructions to .env.example. 2021-07-02 19:10:57 -03:00
fiatjaf ffadce02b0 support cockroachdb. 2021-07-02 18:32:58 -03:00
fiatjaf 2466cd59db adjust copilot to postgres branch. 2021-07-02 17:53:53 -03:00
fiatjaf 46eab3b35e psycopg2 only imported when postgres. 2021-07-02 17:34:33 -03:00
fiatjaf e2d43e786f fix wrong schema for apipayments usage inside extensions. 2021-07-02 17:34:33 -03:00
fiatjaf 2f309c9863 postgres support. 2021-07-02 17:34:31 -03:00
fiatjaf 6f88973f75 fail longpolling endpoint after 45 seconds.
this should fix a possible bug in which connections are left open forever or worse.
2021-06-23 17:21:53 -03:00
fiatjaf 1b433f9cbc remove secure headers. 2021-06-23 17:21:53 -03:00
fiatjaf 688149fade add trio typing. 2021-06-20 21:17:32 -03:00
fiatjaf f875dc7b63 "unit" optional on invoice creation, defaults to "sat" 2021-06-19 09:12:16 -03:00
fiatjaf 64c4b97ec9 catch error on redeem_lnurl_withdraw call. 2021-06-17 13:26:09 -03:00
fiatjaf 7ab4553ef5 splitpayments extension. 2021-06-10 12:19:50 -03:00
fiatjaf 5fbd1f08c4 lnurlp: only send success_action when it exists. 2021-06-05 15:20:36 -03:00
fiatjaf 05139b3305 lnurlp: fix success_url checking. 2021-06-04 00:29:55 -03:00
fiatjaf fc792f874b public api for checking an invoice status with longpolling. 2021-06-02 17:05:07 -03:00
fiatjaf b06e1c8fa9 try-catch in pay_invoice on global lnurl-withdraw. 2021-06-01 13:28:05 -03:00
fiatjaf f6a8e96087 fix note about global virtualenv. 2021-05-22 20:35:37 -03:00
fiatjaf b9db504f34 fix links to extensions in payments tags. 2021-05-21 22:57:22 -03:00
fiatjaf 9ba5342f3c subdomain: guard allowed_record_types type. 2021-05-15 11:06:35 -03:00
fiatjaf 5dbbca0ffb improve invoice deleting code. 2021-05-14 13:13:42 -03:00
fiatjaf 8cff11bf72 global quart errorhandler. 2021-05-06 23:22:02 -03:00
fiatjaf 2b21a4f479 g.nursery -> current_app.nursery 2021-05-06 12:41:44 -03:00
fiatjaf d5f5c9473f guard against amount=NaN in two other lnurlw contexts. 2021-05-05 20:45:49 -03:00
fiatjaf b6f015b561 lnurlp: account for invalid amount in querystring. 2021-04-27 15:52:44 -03:00
fiatjaf bcecf6d431 handle invalid lnurl-w responses on redeem_lnurl_withdraw. 2021-04-23 19:24:04 -03:00
fiatjaf b55cc82f1c evade lnurl encoding error for withdraw_full QR on localhost. 2021-04-21 23:27:57 -03:00
fiatjaf 2aa4a93da1 handle empty lnurl-withdraws to redeem. 2021-04-21 23:27:57 -03:00
fiatjaf 232de067a4 expect more errors from SSE connection. 2021-04-21 23:27:57 -03:00
fiatjaf 3d489bf2ee make it so LNbitsWallet reconnects if the listener stream goes off. 2021-04-18 10:29:22 -03:00
fiatjaf 42b3359d12 fix invoice listener for LNbitsWallet. 2021-04-18 00:05:45 -03:00
fiatjaf cbeb888761 fix lnurlwallet flow. 2021-04-17 23:44:26 -03:00
fiatjaf a413685160 fix redeem_lnurl_withdraw code. 2021-04-17 23:30:26 -03:00
fiatjaf 943237e7ff prettier fixes. 2021-04-17 23:21:27 -03:00
fiatjaf efd9c6917f lnurl balanceCheck and balanceNotify. 2021-04-17 23:21:19 -03:00
fiatjaf f08d86c6df livestream: a standalone QR code for each track. 2021-04-17 00:15:03 -03:00
fiatjaf 27e170d304 livestream: allow tracks to be edited. 2021-04-17 00:14:34 -03:00
fiatjaf 808ded509d fix pipfile.lock and update dependencies. 2021-04-13 11:50:30 -03:00
fiatjaf 0f998419e7 basic webmanifest thing, must be improved. 2021-04-13 11:50:30 -03:00
fiatjaf da9723735c fix: livestream producer sharing was conflicting with internal payments. 2021-04-11 00:44:55 -03:00
fiatjaf 2a198d3186 metadata and hide. 2021-04-11 00:44:55 -03:00
fiatjaf c6f4372d23 pass the full payment_hash to the lnurl success action URL. 2021-04-11 00:44:55 -03:00
fiatjaf 529717a0f6 livestream dialog at the middle. 2021-04-11 00:44:55 -03:00
fiatjaf 69f867f692 make the livestream text more neutral. 2021-04-11 00:44:55 -03:00
fiatjaf 52e7a28fc2 make price optional then fix min/max issues. 2021-04-11 00:44:55 -03:00
fiatjaf 42cf70e158 conditional buys: get a download link when paying over x. 2021-04-11 00:44:55 -03:00
fiatjaf a3fbcd46cd livestream: notifications and comments. 2021-04-11 00:44:55 -03:00
fiatjaf e17b9422ad add price to track description. 2021-04-11 00:44:55 -03:00
fiatjaf 76199c66a1 livestream extension.
(except docs)
2021-04-11 00:44:55 -03:00
fiatjaf e38b945d5c fix some of mypy complaints. 2021-04-10 18:06:41 -03:00
fiatjaf fdf4f6c1ae catch errors in multiple places that might be destroying the async flow and causing lnbits to die silently. 2021-04-10 17:37:48 -03:00
fiatjaf 82731dc901 a special error for when payments fail. 2021-04-06 14:57:51 -03:00
fiatjaf 59aaea47fd lndrest: capture the pay error properly. 2021-04-06 10:22:37 -03:00
fiatjaf 946279674a stop bloating the logs with checking routine. 2021-03-31 20:24:46 -03:00
fiatjaf 11679a4fa7 actually do the fee abs() thing on the balances view. 2021-03-31 20:22:34 -03:00
fiatjaf 510ccbc007 update mypy. 2021-03-28 02:02:21 -03: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
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
fiatjaf 1a460a2ce5 fix issue #159 2021-03-17 09:03:07 -03:00
fiatjaf d511e92a04 update requirements.txt 2021-03-14 22:14: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 c7717a611a UI to change the wordlist. 2021-03-07 17:03:01 -03:00