multi: move all channelstate operations to ChannelStateDB
This commit is contained in:
1 parent
ddea833d31
commit
11cf4216e4
35 files changed
+377
-238
No files matched your search
@@ -17,7 +17,7 @@ type ChannelNotifier struct {
|
||||
|
||||
ntfnServer *subscribe.Server
|
||||
|
||||
chanDB *channeldb.DB
|
||||
chanDB *channeldb.ChannelStateDB
|
||||
}
|
||||
|
||||
// PendingOpenChannelEvent represents a new event where a new channel has
|
||||
@@ -76,7 +76,7 @@ type FullyResolvedChannelEvent struct {
|
||||
// New creates a new channel notifier. The ChannelNotifier gets channel
|
||||
// events from peers and from the chain arbitrator, and dispatches them to
|
||||
// its clients.
|
||||
func New(chanDB *channeldb.DB) *ChannelNotifier {
|
||||
func New(chanDB *channeldb.ChannelStateDB) *ChannelNotifier {
|
||||
return &ChannelNotifier{
|
||||
ntfnServer: subscribe.NewServer(),
|
||||
chanDB: chanDB,
|
||||
|
||||
Reference in new issue
Block a user