2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-04 06:00:21 +00:00
loop/loopdb
carla 9678c7817d
multi: add swap label to SwapContract and store under separate key
This commits adds an optional label to our swaps, and writes it to
disk under a separate key in our swap bucket. This approach is chosen
rather than an on-the-fly addition to our existing swap contract field
so that we do not need to deal with EOF checking in the future. To allow
creation of unique internal labels, we add a reserved prefix which can
be used by the daemon to set labels that are distinct from client set
ones.
2020-08-03 10:55:58 +02:00
..
codec.go loopdb: make new loopdb package to house persistent storage 2019-03-06 20:33:27 -08:00
interface.go loopdb: replace swap state enum by state data object 2019-05-20 13:57:09 +02:00
log.go multi: add persistent logger 2019-10-28 17:09:23 +01:00
loop.go multi: add swap label to SwapContract and store under separate key 2020-08-03 10:55:58 +02:00
loopin.go multi: add swap label to SwapContract and store under separate key 2020-08-03 10:55:58 +02:00
loopout.go loopdb: store outgoing channel set 2020-05-21 11:22:04 +02:00
meta.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
migration_01_costs.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 2019-11-21 18:47:00 +01:00
migration_02_swap_publication_deadline.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 2019-11-21 18:47:00 +01:00
migration_03_last_hop.go loopdb: migrate loop in channel to last hop 2020-02-17 19:59:05 +01:00
migration_04_updates_test.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
migration_04_updates.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
raw_db_test.go loopdb: allow restored databases to contain nil values 2020-06-23 12:46:00 +02:00
store_test.go multi: add swap label to SwapContract and store under separate key 2020-08-03 10:55:58 +02:00
store.go multi: add swap label to SwapContract and store under separate key 2020-08-03 10:55:58 +02:00
swapstate.go loopin: fail swap when htlc amount is incorrect 2020-06-25 14:22:46 +02:00