sparkswap / sparkswap-desktop

Buy Bitcoin instantly on the Lightning Network
https://sparkswap.com
MIT License
37 stars 18 forks source link

Auto-retry up to 3 times when executing scheduled buys #4

Closed Free-FreeThinker closed 4 years ago

Free-FreeThinker commented 4 years ago

Sometimes order execution may fail due to timeout (could be caused by network delay), and by auto-retry on scheduled buys, they'd have a better chance of success.

Scheduled buys are different from manual buys, as they're usually executed unattended. So when scheduled buys failed, the users are usually not in front of the App to do the retry manually.

dannypaz commented 4 years ago

@Free-FreeThinker this will be in the next release. We've had to modify this code (so itll look different in the current codebase) but have merged this PR. Thank you for putting up this PR