mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
multi: store swap cost in database
This commit is contained in:
parent
24a1b8d642
commit
6efa62347b
9 changed files with 146 additions and 15 deletions
3
swap.go
3
swap.go
|
|
@ -19,7 +19,7 @@ type swapKit struct {
|
|||
log *SwapLog
|
||||
|
||||
lastUpdateTime time.Time
|
||||
cost SwapCost
|
||||
cost loopdb.SwapCost
|
||||
state loopdb.SwapState
|
||||
executeConfig
|
||||
swapConfig
|
||||
|
|
@ -70,6 +70,7 @@ func (s *swapKit) sendUpdate(ctx context.Context) error {
|
|||
LastUpdate: s.lastUpdateTime,
|
||||
SwapStateData: loopdb.SwapStateData{
|
||||
State: s.state,
|
||||
Cost: s.cost,
|
||||
},
|
||||
HtlcAddress: s.htlc.Address,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue