mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
eece3adad1
commit
1b306ad425
14 changed files with 94 additions and 58 deletions
|
|
@ -79,9 +79,9 @@ func createClientTestContext(t *testing.T,
|
|||
for _, s := range pendingSwaps {
|
||||
store.loopOutSwaps[s.Hash] = s.Contract
|
||||
|
||||
updates := []loopdb.SwapState{}
|
||||
updates := []loopdb.SwapStateData{}
|
||||
for _, e := range s.Events {
|
||||
updates = append(updates, e.State)
|
||||
updates = append(updates, e.SwapStateData)
|
||||
}
|
||||
store.loopOutUpdates[s.Hash] = updates
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue