mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 08:02:25 +02:00
multi: refactor select methods within channeldb to use ChannelParty
Also in this commit is a small adjustment to the call-sites to get the boundaries stitched back together.
This commit is contained in:
@@ -129,7 +129,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(*wire.MsgTx, bool) error
|
||||
MarkCommitmentBroadcasted func(*wire.MsgTx, lntypes.ChannelParty) error
|
||||
|
||||
// MarkChannelClosed marks the channel closed in the database, with the
|
||||
// passed close summary. After this method successfully returns we can
|
||||
@@ -1084,7 +1084,7 @@ func (c *ChannelArbitrator) stateStep(
|
||||
// database, such that we can re-publish later in case it
|
||||
// didn't propagate. We initiated the force close, so we
|
||||
// mark broadcast with local initiator set to true.
|
||||
err = c.cfg.MarkCommitmentBroadcasted(closeTx, true)
|
||||
err = c.cfg.MarkCommitmentBroadcasted(closeTx, lntypes.Local)
|
||||
if err != nil {
|
||||
log.Errorf("ChannelArbitrator(%v): unable to "+
|
||||
"mark commitment broadcasted: %v",
|
||||
|
Reference in New Issue
Block a user