mirror of
https://github.com/aljazceru/lspd.git
synced 2026-01-03 22:24:27 +01:00
insert channel directly after opening
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/GoWebProd/uuid7"
|
||||
"github.com/breez/lspd/chain"
|
||||
"github.com/breez/lspd/common"
|
||||
"github.com/breez/lspd/history"
|
||||
"github.com/breez/lspd/lightning"
|
||||
"github.com/btcsuite/btcd/btcec/v2"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
@@ -96,6 +97,12 @@ func (s *mockLsps2Store) RemoveUnusedExpired(ctx context.Context, before time.Ti
|
||||
return nil
|
||||
}
|
||||
|
||||
type mockHistoryStore struct{}
|
||||
|
||||
func (s *mockHistoryStore) UpdateChannels(ctx context.Context, updates []*history.ChannelUpdate) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type mockLightningClient struct {
|
||||
openResponses []*wire.OutPoint
|
||||
openRequests []*lightning.OpenChannelRequest
|
||||
|
||||
Reference in New Issue
Block a user