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.
This commit is contained in:
Joost Jager 2019-05-15 13:55:41 +02:00
parent eece3adad1
commit 1b306ad425
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
14 changed files with 94 additions and 58 deletions

View file

@ -280,12 +280,12 @@ func (t Type) String() string {
// SwapInfo exposes common info fields for loop in and loop out swaps.
type SwapInfo struct {
loopdb.SwapStateData
LastUpdate time.Time
SwapHash lntypes.Hash
State loopdb.SwapState
SwapType Type
loopdb.SwapContract