You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
4 years ago
..
codec.go loopdb: make new loopdb package to house persistent storage 5 years ago
interface.go loopdb: replace swap state enum by state data object 5 years ago
log.go multi: add persistent logger 5 years ago
loop.go multi: add swap label to SwapContract and store under separate key 4 years ago
loopin.go multi: add swap label to SwapContract and store under separate key 4 years ago
loopout.go loopdb: store outgoing channel set 4 years ago
meta.go loopdb: migrate to nested updates structure 4 years ago
migration_01_costs.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 5 years ago
migration_02_swap_publication_deadline.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 5 years ago
migration_03_last_hop.go loopdb: migrate loop in channel to last hop 4 years ago
migration_04_updates.go loopdb: migrate to nested updates structure 4 years ago
migration_04_updates_test.go loopdb: migrate to nested updates structure 4 years ago
raw_db_test.go loopdb: allow restored databases to contain nil values 4 years ago
store.go multi: add swap label to SwapContract and store under separate key 4 years ago
store_test.go multi: add swap label to SwapContract and store under separate key 4 years ago
swapstate.go loopin: fail swap when htlc amount is incorrect 4 years ago