Commit Graph

2950 Commits

Author SHA1 Message Date
k00b 74f771adf4 fix #1754 2024-12-27 19:06:30 -06:00
Keyan eb22fdab41
make possibly conflicting optimistic cache updates write to each other (#1772)
* make possibly conflicting optimistic cache updates write to each other

* always update optimistic caches with cache.modifying items
2024-12-27 14:52:32 -06:00
Keyan 18445b1dc1
fix 1695 by not updating ancestors on zap (#1766)
* fix 1695 by not updating ancestors on zap

* update ancestors but only onPaid
2024-12-27 10:19:49 -06:00
Riccardo Balbo 6efa782c11
fix typo (#1764) 2024-12-26 13:10:15 -06:00
ekzyis 4ad54d6f5a
Fix typo in deposit notification (#1765) 2024-12-26 13:10:02 -06:00
k00b 1b1045fcd9 increase pull refresh distance 2024-12-23 19:50:51 -06:00
Keyan 9490520925
renerf ek and I (#1760) 2024-12-23 19:17:32 -06:00
Keyan 2fc529419e
reduce territory price with prorated refund for actives (#1761) 2024-12-23 18:50:35 -06:00
ekzyis b4352e74b4
Fix echoed message about mining blocks (#1759) 2024-12-23 13:15:37 -06:00
ekzyis 0ca37038dd
Fix upvote button shown for deleted items (#1753) 2024-12-20 18:16:24 -06:00
Keyan f5fb88342b
update cache on vault key update (#1752)
* update cache on vault key update

* Update components/vault/use-vault-configurator.js

Co-authored-by: ekzyis <ek@stacker.news>

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-12-20 18:15:06 -06:00
Riccardo Balbo 6ad7a3cf60
add ofelia cron for wallets and force cln to reconnect (#1746) 2024-12-19 17:02:27 -06:00
ekzyis fdbe14d195
Fix send-only wallet save after device sync enabled (#1732)
* Rename walletData to recvConfig

* Use nested upsert during wallet update
2024-12-19 11:31:11 -06:00
Riccardo Balbo e4ca2d6e07
Refine #1739 and fix regression causing nostr crossposts and login to not work (#1740)
* Refine #1739 and fix regression causing crossposts and login to not work

* use temp nostr instance for signing
2024-12-19 08:27:45 -06:00
ekzyis 4db2edb1d9
Close relay connections after each NWC call (#1739) 2024-12-19 00:11:03 -06:00
ekzyis d3a705d3ad
Fix admin edits (#1737) 2024-12-18 18:28:18 -06:00
k00b b8061a630c don't double factor trust 2024-12-18 18:27:38 -06:00
k00b 16b7160d36 increase create invoice timeout 2024-12-18 13:47:03 -06:00
k00b faeefdc498 increase send payment timeout 2024-12-18 12:09:07 -06:00
Keyan 6d4dfddae8
improve rewards (#1731)
* don't bias to early zapping so much

* untested rewards/leaderboard changes

* fix cln dep for payments

* make zap proportion scale using quad root

* fix for missing proportion on hidden users

* improve rewards cutoff criteria

* Update api/resolvers/user.js

Co-authored-by: ekzyis <ek@stacker.news>

* Update api/typeDefs/user.js

Co-authored-by: ekzyis <ek@stacker.news>

* improve switch readability

* small increase in min zap

* refresh materialized views on migration

---------

Co-authored-by: ekzyis <ek@stacker.news>
2024-12-18 10:12:11 -06:00
ekzyis 6098d39574
Fix missing logs on save (#1729)
* Fix missing logs on save

* fix receive logs wrt device sync

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-16 17:37:31 -06:00
ekzyis 62a922247d
Add timeouts to all wallet API calls (#1722)
* Add timeout to all wallet API calls

* Pass timeout signal to wallet API

* Fix timeout error message not shown on timeout

* Fix cross-fetch throws generic error message on abort

* Fix wrong method in error message

* Always use FetchTimeoutError

* Catch NDK timeout error to replace with custom timeout error

* Also use 15s for NWC connect timeout

* Add timeout delay
2024-12-16 14:05:31 -06:00
ekzyis 819d382494
Fix lightning address logs deletion (#1728) 2024-12-15 11:14:33 -06:00
ekzyis 14de23b21d
Refactor CLN function signatures (#1726) 2024-12-14 10:32:51 -06:00
ekzyis 3cdfe620d0
Refactor Blink function signatures (#1725)
This makes them consistent with function signatures of other wallets
2024-12-14 08:56:45 -06:00
ekzyis 77d22cfd77
Remove unused wallet context args (#1724) 2024-12-14 08:55:08 -06:00
Riccardo Balbo bdd24130f9
Nip46 auth with NDK (#1636)
* ndk

* fix: remove duplicated zap note event template

* don't init Nip07 signer by default

* Update wallets/nwc/server.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* nwc protocol parsing workaround

* WebSocket polyfill for worker

* increase nwc timeout

* remove NDKNip46Signer type

* fix type annotation

* move  eslint-disable camelcase to the top

* pass event args to the constructor

* fix error handling

* Update wallets/nwc/index.js

Co-authored-by: ekzyis <ek@stacker.news>

* nip46 auth

* style tweak, remove unmaintained signers from the list

* don't use modal

* workaround url parsing

* use kind 27235

* add kind 27235 metadata

* show suggestion after a timeout

* Update lib/nostr.js

Co-authored-by: ekzyis <ek@stacker.news>

* Update components/nostr-auth.js

Co-authored-by: ekzyis <ek@stacker.news>

* fix unrelated lnauth crash when closing ext prompt

* make ui consistent ...

* give buttons spacing

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-13 20:25:34 -06:00
ekzyis 285203889d Remove unused import 2024-12-13 21:20:51 +01:00
ekzyis a50a2c8bd1
Fix receiver fallbacks depend on fast polls (#1723) 2024-12-13 14:19:00 -06:00
Riccardo Balbo d73f6323ff
NDK (#1590)
* ndk

* fix: remove duplicated zap note event template

* don't init Nip07 signer by default

* Update wallets/nwc/server.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* nwc protocol parsing workaround

* WebSocket polyfill for worker

* increase nwc timeout

* remove NDKNip46Signer type

* fix type annotation

* move  eslint-disable camelcase to the top

* pass event args to the constructor

* fix error handling

* Update wallets/nwc/index.js

Co-authored-by: ekzyis <ek@stacker.news>

* Fix type annotation

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-12-13 13:28:36 -06:00
Riccardo Balbo 52734940a3
Bolt12 dev environment (#1702)
* lndk-eclair bolt12 test environment

* use static certs for lndk dev

* move eclair/lndk/cln to wallets profile, force lndk onto x86 platform

* fix port conflict

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-13 12:30:30 -06:00
Keyan bf541aa643
Merge pull request #1721 from stackernews/fix-missing-usage-of-timeout-error
Fix missing usage of new TimeoutError
2024-12-13 10:29:50 -06:00
ekzyis 06a3a71eb9 Use new TimeoutError 2024-12-13 16:29:00 +01:00
Keyan adfbdeddba
Merge pull request #1720 from stackernews/fix-toast-padding
Fix missing toast padding
2024-12-13 08:39:45 -06:00
ekzyis fc4303658d
Use AbortSignal.timeout + custom timeout error message (#1718)
* refactor: replace custom logic with AbortSignal.timeout

* Use custom timeout error message

* Include method and url in fetch timeout error

* Fix error not rethrown
2024-12-13 08:38:42 -06:00
Keyan e8434d07c5
Merge pull request #1719 from stackernews/fix-missing-save-error-log
Fix missing logging of sender wallet validation error
2024-12-13 08:36:37 -06:00
ekzyis 959cd1f3f4 Fix missing toast padding 2024-12-13 15:03:04 +01:00
ekzyis 64ba7a56cb Fix missing wallet error logging 2024-12-13 11:30:54 +01:00
Riccardo Balbo ec213907fc
Use debian cdn instead of de mirror (#1715)
* Use debian cdn instead of de mirror

* use https in deb mirror
2024-12-12 10:30:39 -06:00
ekzyis 66b7352bf0
Fix forever edits (#1716)
* Fix forever edits

* Refactor edit check on server
2024-12-12 09:35:30 -06:00
Keyan 6918bcb452
Merge pull request #1714 from stackernews/1704-fix-exposed-routing-fees
Don't expose p2p zap receivers to routing fees
2024-12-11 15:47:57 -06:00
k00b 98fae6c9ae prioritize payment reliability 2024-12-11 15:38:38 -06:00
Keyan 0e765d4179
Merge pull request #1709 from stackernews/fix-client-pending-forwards-paid
Fix pending forwards considered paid by client
2024-12-11 14:43:33 -06:00
Keyan 3fe5f4b435
Merge pull request #1713 from stackernews/shared-failed-forwards-view 2024-12-11 14:42:31 -06:00
ekzyis c9439c33c6 Don't expose p2p zap receivers to routing fees 2024-12-11 20:55:43 +01:00
ekzyis 8f092cdc66 Use consistent view about failed forwards 2024-12-11 20:09:49 +01:00
ekzyis 4e6fb40c0b Use conditional waitFor to fix premature payment success 2024-12-11 19:27:29 +01:00
ekzyis 8cb89574ae Fix pending forwards considered paid by client 2024-12-11 14:39:01 +01:00
ekzyis 756e75ed7c
Fix latest timestamp not updated (#1705) 2024-12-10 15:36:04 -06:00
ekzyis a46f81f1e1
Receiver fallbacks (#1688)
* Use same naming scheme between ln containers and env vars

* Add router_lnd container

* Only open channels to router_lnd

* Use 1sat base fee and 0ppm fee rate

* Add script to test routing

* Also fund router_lnd wallet

* Receiver fallbacks

* Rename to predecessorId

* Remove useless wallet table join

* Missing renaming to predecessor

* Fix payment stuck on sender error

We want to await the invoice poll promise so we can check for receiver errors, but in case of sender errors, the promise will never settle.

* Don't log failed forwards as sender errors

* fix check for receiver error

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-10 14:15:29 -06:00