cnct: fix error returning bug

The wrong error variable was returned, causing a resolution failure to
be interpreted by the channel arbitrator as a success.
This commit is contained in:
Joost Jager 2019-02-26 12:56:21 -03:00
parent a6cf6f4237
commit f23fdf95e7
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -116,7 +116,7 @@ func (c *commitSweepResolver) Resolve() (ContractResolver, error) {
log.Errorf("%T(%v): unable to sweep input: %v",
c, c.chanPoint, sweepResult.Err)
return nil, err
return nil, sweepResult.Err
}
log.Infof("ChannelPoint(%v) commit tx is fully resolved by "+