Commit Graph

14 Commits (master)

Author SHA1 Message Date
Slyghtning 755d5dc68e
loopd: new loopin state for incorrect amount sweeps 2 months ago
Slyghtning 0bd4b7cf89
loopdb: state insufficient confirmed funds 5 months ago
Slyghtning 0fbf253391
loopdb: abandon swap state 5 months ago
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2 years ago
carla 692620d367
liquidity: add fee budget to swap suggestions
Add a dated fee budget to our swap suggestions. This budget only applies
to automatically dispatched swaps (which will be added in later
commits). We choose to apply the fee budget to our suggestions so that
they perfectly replicate what the autolooper would do. The budget has a
start date so that it can be refreshed once it has been used up over a
period (rather than having to endlessly increase it).
4 years ago
Joost Jager a3b7fa5977
loopin: fail swap when htlc amount is incorrect
Previously the swap would get stuck in a state where it wouldn't ever
progress because the server rejected the htlc.
4 years ago
Joost Jager b5a49ed205
loopdb: classify InvoiceSettled as pending 4 years ago
Joost Jager 4da4738a2d
loopdb: persist htlc tx hash 4 years ago
Joost Jager 3e71ff0c81
loopdb: strongly typed constants 4 years ago
Joost Jager 6efa62347b
multi: store swap cost in database 5 years ago
Joost Jager 1b306ad425
loopdb: replace swap state enum by state data object
This commits lays down the foundation in the database for adding more
persistent state data to swaps.
5 years ago
Joost Jager b5d2fb3894
loopd: add loop in state InvoiceSettled 5 years ago
Joost Jager 6a0a9556a0
loopdb: add loop in
This commit adds the required code to persist loop in swaps. It also
introduces the file loop.go to which shared code is moved.

Sharing of contract serialization/deserialization code has been
reverted. The prepay fields do not apply to loop in, but were part of
the shared contract struct. Without also adding a migration, it wouldn't
be possible to keep the shared code.

In general it is probably more flexible to keep the contract
serialization code separated between in and out swaps.
5 years ago
Olaoluwa Osuntokun cdcb9f8345 loopdb: make new loopdb package to house persistent storage 5 years ago