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:
parent
a6cf6f4237
commit
f23fdf95e7
@ -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 "+
|
||||
|
Loading…
Reference in New Issue
Block a user