Commit Graph

351 Commits

Author SHA1 Message Date
yse
9fbf7774b8 feat: add client_id to rt-sync notifications (#747) 2025-02-17 16:31:31 +01:00
Daniel Granhão
3ec57ad93e Add tx propagation grace period to swap recovery (#733)
* Add tx propagation grace period to swap recovery

* Add missing tx reset checks and improve logs
2025-02-17 13:23:32 +00:00
Ross Savage
c686e44dfe Deduct send amount if tx not seen yet (#736)
* Deduct send amount if tx not seen

* Reuse NETWORK_PROPAGATION_GRACE_PERIOD_SEC to determine a new tx

* Use the payment event to update the wallet info
2025-02-13 13:59:51 +01:00
Ross Savage
a1fcf60d24 Consider created send swaps as recoverable (#735) 2025-02-12 16:18:56 +01:00
Roei Erez
206d0a3065 Merge pull request #732 from breez/lock-free-sync
Refactor sync notifications loop
2025-02-11 18:46:28 +02:00
Roei Erez
cb4da697f4 Some more logs 2025-02-11 18:37:35 +02:00
Roei Erez
fb953c3386 lock free sync trigger 2025-02-11 17:58:43 +02:00
Daniel Granhão
fc03572588 Persist and expose BIP353 addresses (#718)
* Persist and expose BIP353 addresses

* Increment schema minor version

* Move bip353 address from LNURL context to SendDestination

* Update after sdk-common merge

* Address review

* Only try to insert bip353 address when available
2025-02-11 15:29:16 +00:00
Roei Erez
2216e8859f fix log message 2025-02-11 15:18:13 +02:00
Roei Erez
224b9cac73 commit changes regardless of sync trigger exists. 2025-02-11 14:12:58 +02:00
Roei Erez
453feca8b1 refactor sync notifications loop 2025-02-11 10:25:58 +02:00
Daniel Granhão
b5e1f2963d Clean payment txs data on sync (#731)
* Clean payment txs data on sync

* Move liquid wallet full scan into sync
2025-02-10 16:34:35 +00:00
Ross Savage
9dade57317 Send Swap recovery fixes (#730)
* Only recover claim tx when the lockup tx exists

* Only set local send swaps from Created to TimedOut on restart

* Fix is_local condition
2025-02-10 17:33:43 +01:00
yse
e6747058d7 feat(rt-sync): add notifications endpoint (#694) 2025-02-09 04:01:23 +01:00
Daniel Granhão
99d8765681 Support regtest (#707)
* Support regtest

* Fix bindings, print and switch boltz client crate

* Remove stop-grace-period

* Fix docker compose issues

* feat: add rt-sync to regtest setup

* Configure local rtsync instance on default regtest config

* Bump sdk-common rev

* Fix compose restart missing quotation

* Specify platform only in base configurations

* Fix after rebase

---------

Co-authored-by: yse <hydra_yse@proton.me>
2025-02-07 16:00:59 +00:00
Roei Erez
72ec801898 fix persist error on initialization 2025-02-06 20:01:02 +02:00
yse
e7a7adaf8a feat: remove swapper initialization at startup (#712) 2025-02-06 14:24:55 +01:00
Ross Savage
0b4acc6f6a Add seed passphrase to ConnectRequest (#722)
* Add seed passphrase to ConnectRequest

* Fix tests
2025-02-06 11:32:47 +01:00
Daniel Granhão
1e5bf46b70 Use same tx_map for recovery of swaps and liquid payments (#720) 2025-02-06 09:35:01 +00:00
yse
bc0a7dbf2b feat: add log header on SDK init (#717) 2025-02-06 09:19:18 +01:00
Roei Erez
543b1d198c Merge pull request #719 from breez/savage-fix-signer-empty-derivation-path
Don't attempt to derive empty derivation path
2025-02-05 17:40:03 +02:00
Roei Erez
96ad2fcb5e Merge branch 'debug-ios-crash-on-push'
* debug-ios-crash-on-push:
  update version to 0.7.0-rc3
  Switch to pure AES implementation in ecies (#716)
  update version to 0.7.0-rc2
  Add logging to handle_push
  update version to 0.7.0-rc1
2025-02-05 17:31:59 +02:00
Ross Savage
144b027120 Don't attempt to derive empty derivation path 2025-02-05 15:17:41 +01:00
Daniel Granhão
71a8c6ed57 Add logging to handle_push 2025-02-04 16:36:08 +00:00
Roei Erez
739b3d7d2a cleanup 2025-02-04 13:55:13 +02:00
Roei Erez
ee0924c571 cache tip 2025-02-04 09:42:24 +02:00
Daniel Granhão
0c9d2b8cbe Prevent missing notifications due to concurrent SDK instances (#697)
* Prevent missing notifications due to concurrent SDK instances

* Expose swap claim tx id and use it to derive WaitingConfirmation in plugins

* Use id type as get payment request variant
2025-02-03 17:33:07 +00:00
Roei Erez
24dac2e258 Cleanup code 2025-02-03 14:52:31 +02:00
Roei Erez
41aca3c8ec fix comment 2025-02-03 12:53:55 +02:00
Roei Erez
e5d0e94e58 remove println statements 2025-02-03 11:43:25 +02:00
Roei Erez
a5cc34d591 lazy initialization of electrum 2025-02-02 22:43:42 +02:00
Roei Erez
262254f998 simlify tip 2025-02-02 18:29:35 +02:00
Roei Erez
f0e25807af fix clippy 2025-02-02 17:19:34 +02:00
Roei Erez
54d7e9acb1 remove electrum tip query on start 2025-02-02 17:00:16 +02:00
Roei Erez
a57edbeace configure timeouts 2025-01-30 03:15:48 +02:00
Daniel Granhão
3a321379bf Increase onchain fetching retries (#702) 2025-01-29 22:50:03 +00:00
Daniel Granhão
3590f5cdef Distinguish between failed fetch and tx not found (#703) 2025-01-29 22:49:08 +00:00
Daniel Granhão
d5030c5fb5 Allow incoming chain swap refund tx id overwrite (#695) 2025-01-29 14:33:28 +00:00
Ross Savage
b24046c5e9 LNURL-pay drain (#674)
* LNURL-pay drain

* Fix min_sendable calculation
2025-01-29 14:44:46 +01:00
Roei Erez
ca9da9ea6d Merge branch 'lock-free-liquid-chain-service'
* lock-free-liquid-chain-service:
  cleanup tip endpoint
  fix formatting
  Add logs
  cargo fmt
  remove lock for bitcoin chain service
  Add logs
  remove lock for liquid chain servivce
2025-01-29 12:28:50 +02:00
Roei Erez
461f54be38 cleanup tip endpoint 2025-01-29 12:07:39 +02:00
Roei Erez
fb37e7bccc fix formatting 2025-01-29 10:38:11 +02:00
Roei Erez
ede21aba69 Merge pull request #696 from breez/optimize-wallet-sync
Use cached electrum client connection for full_scan
2025-01-29 10:26:15 +02:00
Roei Erez
7ad4de9381 Add logs 2025-01-28 22:33:05 +02:00
Roei Erez
ec6b4d29a8 cargo fmt 2025-01-28 22:02:56 +02:00
Roei Erez
9c68b9e8a3 remove lock for bitcoin chain service 2025-01-28 22:00:50 +02:00
Roei Erez
2cffea07b8 Add logs 2025-01-28 21:01:19 +02:00
Roei Erez
282978fddf remove lock for liquid chain servivce 2025-01-28 20:29:59 +02:00
Roei Erez
a4ab1b0c4b return error instead of unwrap 2025-01-28 19:01:33 +02:00
Roei Erez
d046472a63 use cached electrum client connection for full_scan 2025-01-28 00:31:58 +02:00