mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 20:15:18 +02:00
multi: make MarkCommitmentBroadcasted take closeTx
This commit is contained in:
@@ -97,7 +97,7 @@ type ChannelArbitratorConfig struct {
|
||||
|
||||
// MarkCommitmentBroadcasted should mark the channel as the commitment
|
||||
// being broadcast, and we are waiting for the commitment to confirm.
|
||||
MarkCommitmentBroadcasted func() error
|
||||
MarkCommitmentBroadcasted func(*wire.MsgTx) error
|
||||
|
||||
// MarkChannelClosed marks the channel closed in the database, with the
|
||||
// passed close summary. After this method successfully returns we can
|
||||
@@ -840,7 +840,7 @@ func (c *ChannelArbitrator) stateStep(
|
||||
}
|
||||
}
|
||||
|
||||
if err := c.cfg.MarkCommitmentBroadcasted(); err != nil {
|
||||
if err := c.cfg.MarkCommitmentBroadcasted(closeTx); err != nil {
|
||||
log.Errorf("ChannelArbitrator(%v): unable to "+
|
||||
"mark commitment broadcasted: %v",
|
||||
c.cfg.ChanPoint, err)
|
||||
|
@@ -213,7 +213,7 @@ func createTestChannelArbitrator(log ArbitratorLog) (*ChannelArbitrator,
|
||||
}
|
||||
return summary, nil
|
||||
},
|
||||
MarkCommitmentBroadcasted: func() error {
|
||||
MarkCommitmentBroadcasted: func(_ *wire.MsgTx) error {
|
||||
return nil
|
||||
},
|
||||
MarkChannelClosed: func(*channeldb.ChannelCloseSummary) error {
|
||||
|
Reference in New Issue
Block a user