multi: provide mempool=true to RegisterSpendNtfn
This commit is contained in:
parent
9e7e023194
commit
8b02064c7b
@ -519,7 +519,7 @@ secondLevelCheck:
|
||||
if !ok {
|
||||
spendNtfn, err = b.cfg.Notifier.RegisterSpendNtfn(
|
||||
&breachedOutput.outpoint,
|
||||
breachInfo.breachHeight,
|
||||
breachInfo.breachHeight, true,
|
||||
)
|
||||
if err != nil {
|
||||
brarLog.Errorf("unable to check for "+
|
||||
|
@ -477,7 +477,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,
|
||||
&closeInfo.ChanPoint, closeInfo.CloseHeight, true,
|
||||
)
|
||||
if err != nil {
|
||||
log.Errorf("unable to register for spend: %v", err)
|
||||
|
@ -180,7 +180,7 @@ func (c *chainWatcher) Start() error {
|
||||
}
|
||||
|
||||
spendNtfn, err := c.notifier.RegisterSpendNtfn(
|
||||
fundingOut, heightHint,
|
||||
fundingOut, heightHint, true,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -173,7 +173,7 @@ func (h *htlcTimeoutResolver) Resolve() (ContractResolver, error) {
|
||||
// to confirm.
|
||||
spendNtfn, err := h.Notifier.RegisterSpendNtfn(
|
||||
&h.htlcResolution.ClaimOutpoint,
|
||||
h.broadcastHeight,
|
||||
h.broadcastHeight, true,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -608,7 +608,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,
|
||||
&h.htlcResolution.ClaimOutpoint, h.broadcastHeight, true,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -820,7 +820,7 @@ func (h *htlcOutgoingContestResolver) Resolve() (ContractResolver, error) {
|
||||
// the remote party sweeps with the pre-image, we'll be notified.
|
||||
spendNtfn, err := h.Notifier.RegisterSpendNtfn(
|
||||
&outPointToWatch,
|
||||
h.broadcastHeight,
|
||||
h.broadcastHeight, true,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -1316,7 +1316,7 @@ func (c *commitSweepResolver) Resolve() (ContractResolver, error) {
|
||||
// until the commitment output has been spent.
|
||||
spendNtfn, err := c.Notifier.RegisterSpendNtfn(
|
||||
&c.commitResolution.SelfOutPoint,
|
||||
c.broadcastHeight,
|
||||
c.broadcastHeight, true,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user