contractcourt/contract_resolvers: make second level htlcSuccessResolver wait for conf

This commit is contained in:
Johan T. Halseth 2018-07-17 09:13:05 +02:00
parent bf06dc24c1
commit b3e17aa67b
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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, true,
&h.htlcResolution.ClaimOutpoint, h.broadcastHeight, false,
)
if err != nil {
return nil, err