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 committed 2019-02-26 12:56:21 -03:00
1 parent a6cf6f4237
commit f23fdf95e7
1 file changed
+1 -1
+1 -1
View File
@@ -116,7 +116,7 @@ func (c *commitSweepResolver) Resolve() (ContractResolver, error) {
log.Errorf("%T(%v): unable to sweep input: %v", log.Errorf("%T(%v): unable to sweep input: %v",
c, c.chanPoint, sweepResult.Err) c, c.chanPoint, sweepResult.Err)
return nil, err return nil, sweepResult.Err
} }
log.Infof("ChannelPoint(%v) commit tx is fully resolved by "+ log.Infof("ChannelPoint(%v) commit tx is fully resolved by "+