breacharbiter: use the pkScript of the breached output for spend ntnfs

This commit is contained in:
Olaoluwa Osuntokun 2018-07-17 19:27:31 -07:00
parent 62ab7424af
commit ab5b8b8fac
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -360,6 +360,7 @@ func (b *breachArbiter) waitForSpendEvent(breachInfo *retributionInfo,
var err error var err error
spendNtfn, err = b.cfg.Notifier.RegisterSpendNtfn( spendNtfn, err = b.cfg.Notifier.RegisterSpendNtfn(
&breachedOutput.outpoint, &breachedOutput.outpoint,
breachedOutput.signDesc.Output.PkScript,
breachInfo.breachHeight, breachInfo.breachHeight,
) )
if err != nil { if err != nil {