diff --git a/breacharbiter.go b/breacharbiter.go index 9e46dbead..a2933a36a 100644 --- a/breacharbiter.go +++ b/breacharbiter.go @@ -357,7 +357,7 @@ func (b *breachArbiter) waitForSpendEvent(breachInfo *retributionInfo, var err error spendNtfn, err = b.cfg.Notifier.RegisterSpendNtfn( &breachedOutput.outpoint, - breachInfo.breachHeight, false, + breachInfo.breachHeight, ) if err != nil { brarLog.Errorf("unable to check for spentness "+ diff --git a/contractcourt/chain_arbitrator.go b/contractcourt/chain_arbitrator.go index a3a48d555..9ceb4a9ed 100644 --- a/contractcourt/chain_arbitrator.go +++ b/contractcourt/chain_arbitrator.go @@ -497,7 +497,7 @@ func (c *ChainArbitrator) Stop() error { // NOTE: This must be launched as a goroutine. func (c *ChainArbitrator) watchForChannelClose(closeInfo *channeldb.ChannelCloseSummary) { spendNtfn, err := c.cfg.Notifier.RegisterSpendNtfn( - &closeInfo.ChanPoint, closeInfo.CloseHeight, false, + &closeInfo.ChanPoint, closeInfo.CloseHeight, ) if err != nil { log.Errorf("unable to register for spend: %v", err) diff --git a/contractcourt/chain_watcher.go b/contractcourt/chain_watcher.go index 1ab959cbe..7cda8f85a 100644 --- a/contractcourt/chain_watcher.go +++ b/contractcourt/chain_watcher.go @@ -173,7 +173,7 @@ func (c *chainWatcher) Start() error { } spendNtfn, err := c.cfg.notifier.RegisterSpendNtfn( - fundingOut, heightHint, false, + fundingOut, heightHint, ) if err != nil { return err diff --git a/contractcourt/contract_resolvers.go b/contractcourt/contract_resolvers.go index 6b1546197..f9e09630d 100644 --- a/contractcourt/contract_resolvers.go +++ b/contractcourt/contract_resolvers.go @@ -172,7 +172,7 @@ func (h *htlcTimeoutResolver) Resolve() (ContractResolver, error) { // has been spent by a confirmed transaction. spendNtfn, err := h.Notifier.RegisterSpendNtfn( &h.htlcResolution.ClaimOutpoint, - h.broadcastHeight, false, + h.broadcastHeight, ) if err != nil { return err @@ -580,7 +580,7 @@ func (h *htlcSuccessResolver) Resolve() (ContractResolver, error) { // To wrap this up, we'll wait until the second-level transaction has // been spent, then fully resolve the contract. spendNtfn, err := h.Notifier.RegisterSpendNtfn( - &h.htlcResolution.ClaimOutpoint, h.broadcastHeight, false, + &h.htlcResolution.ClaimOutpoint, h.broadcastHeight, ) if err != nil { return nil, err @@ -791,8 +791,7 @@ func (h *htlcOutgoingContestResolver) Resolve() (ContractResolver, error) { // First, we'll register for a spend notification for this output. If // the remote party sweeps with the pre-image, we'll be notified. spendNtfn, err := h.Notifier.RegisterSpendNtfn( - &outPointToWatch, - h.broadcastHeight, false, + &outPointToWatch, h.broadcastHeight, ) if err != nil { return nil, err @@ -1288,7 +1287,7 @@ func (c *commitSweepResolver) Resolve() (ContractResolver, error) { // until the commitment output has been spent. spendNtfn, err := c.Notifier.RegisterSpendNtfn( &c.commitResolution.SelfOutPoint, - c.broadcastHeight, false, + c.broadcastHeight, ) if err != nil { return nil, err