Commit Graph

885 Commits

Author SHA1 Message Date
woodser
52a44d020e update trades on UserThread in TradeManager to fix npe 2024-01-06 12:52:21 -05:00
woodser
0d60df2aa7 refactor trade and connection threading to new ThreadUtils 2024-01-06 12:52:21 -05:00
woodser
59b2a1121b fix concurrent modification exception in peer manager 2024-01-06 12:52:21 -05:00
woodser
497de47965 do not set daemon connection to null on disconnect 2024-01-06 12:52:21 -05:00
woodser
ba8a9ae21d await external prices on startup 2024-01-06 12:52:21 -05:00
woodser
f8d9c827ea skip wallet initialization if shut down started 2024-01-06 12:52:21 -05:00
woodser
2ee2b747f9 check for balance before deleting trade wallet 2024-01-06 12:52:21 -05:00
woodser
20b55ed9dd update ProtoOutputStream from upstream 2024-01-04 14:54:15 -05:00
woodser
e7371d1299 process trade state notifications off UserThread 2024-01-04 14:54:15 -05:00
woodser
43bbb29384 try syncing main wallet when height > target height on startup 2024-01-04 14:54:15 -05:00
woodser
0a3736bba0 reprocess trade messages off UserThread 2024-01-04 14:54:15 -05:00
woodser
9a6a9ac93e synchronize peer manager's reported peers to fix concurrency error 2024-01-04 14:54:15 -05:00
woodser
5d88936600 start main wallet when daemon synced with improved UserThread 2024-01-01 09:05:04 -05:00
woodser
5466689857 set progress listener state in same thread 2024-01-01 09:05:04 -05:00
woodser
7f3fd0af08 finish open offer manager tasks before shut down 2024-01-01 09:05:04 -05:00
woodser
e2e2963b99 ignore error sending message after shut down 2024-01-01 09:05:04 -05:00
woodser
342c212ba8 remove global error handler for taking offer 2024-01-01 09:05:04 -05:00
woodser
fdb24ba9f8 arbitrator sends nack if trade already taken 2024-01-01 09:05:04 -05:00
woodser
c6b1d03283 set price feed state in UserThread 2024-01-01 09:05:04 -05:00
woodser
c55fb927f2 rely on trade state to delete wallet 2023-12-31 10:14:13 -05:00
woodser
3aab3f57b1 set offer state on UserThread 2023-12-31 10:14:13 -05:00
woodser
5b387f0416 re-order Funds > Receive Funds | Send Funds | Transactions 2023-12-31 10:14:13 -05:00
woodser
e160499d30 sync main wallet outside lock on connection changed 2023-12-31 10:14:13 -05:00
woodser
bc4d8fc8c2 split output tx is null while awaiting scheduled tx 2023-12-31 10:14:13 -05:00
woodser
2e86d4a62a check local connection before switching 2023-12-31 10:14:13 -05:00
woodser
6c2f3ea154 improve trade state reliability
update trade state atomically on UserThread
nullify error handling on deposits confirmed message
set trade state before deposit request and relay
add checks before deleting wallet
UserThread.await() detects if on UserThread
2023-12-27 11:20:16 -05:00
woodser
3de4264c4b increase offer reliability with TTL, refresh period, max attempts 2023-12-24 11:55:47 -05:00
woodser
0d33959eeb republish offers on dedicated thread for open offer manager 2023-12-22 09:58:29 -05:00
woodser
a1f8f942fc poll daemon and trade wallets in dedicated lock and prevent queuing 2023-12-22 09:58:29 -05:00
woodser
e1ca35172d handle connection disconnect and shut down off UserThread 2023-12-22 09:58:29 -05:00
woodser
43f177d1f9 update pending trade item on UserThread 2023-12-20 07:32:40 -05:00
woodser
5ebf63e0de silent fail on sending message after stopped 2023-12-20 07:32:40 -05:00
woodser
1dab218d7e do not shut down connection pool in case account is re-recreated 2023-12-20 07:32:40 -05:00
woodser
c7b8571842 reset timeout timer on progress creating offer 2023-12-20 07:32:40 -05:00
woodser
1df2ab4389 replace AppSetupWithP2PAndDAO with AppSetupWithP2P 2023-12-20 07:32:40 -05:00
woodser
01a57c18f7 support setting custom node in UI with localhost running 2023-12-20 07:32:40 -05:00
woodser
f162cad439 handle connection change on dedicated thread, other thread improvements 2023-12-20 07:32:40 -05:00
woodser
b1f8411641 check local connection after setting 2023-12-20 07:32:40 -05:00
woodser
dffb676f4e reset address entries for open offer on error taking offer 2023-12-20 07:32:40 -05:00
woodser
30e199c56e shut down trades before main wallet to finish processing 2023-12-20 07:32:40 -05:00
napoly
de3317b05d downgrade Gradle wrapper to 8.2.1 2023-12-19 13:35:47 -05:00
woodser
e6775f3b58 move processing off UserThread for smoother experience 2023-12-18 13:45:04 -05:00
woodser
ba9a9a3dcc instruct for arbitrators to remain online 2023-12-18 13:45:04 -05:00
woodser
e11d65c038 check and extend timeout after taker creates reserve tx 2023-12-18 13:45:04 -05:00
woodser
fe70a087c4 add check to prevent null payment account name 2023-12-18 13:45:04 -05:00
woodser
48d902b58d close trader dispute ticket on payout published 2023-12-18 13:45:04 -05:00
woodser
c42471191a refactor trade state TRADE_COMPLETED to boolean 2023-12-18 13:45:04 -05:00
napoly
593bced55a Upgrade Gradle wrapper to 8.5 2023-12-16 19:16:41 -05:00
woodser
fd4e4d3917 remove warning that wallet is not synced when idling 2023-12-16 15:20:36 -05:00
woodser
dee5a11e63 subscribe to dispute state property to update dispute view 2023-12-16 15:20:36 -05:00