minor edit
This commit is contained in:
1 parent
0d896f7fc1
commit
b0ce9a06dc
1 file changed
+2
-1
+2
-1
@@ -228,6 +228,7 @@ func (l *LNChannel) CreateHTLC(h *PaymentDescriptor) error {
|
||||
//Validate the data
|
||||
err = l.validateHTLC(h, false)
|
||||
if err != nil {
|
||||
l.Unlock()
|
||||
return err
|
||||
}
|
||||
//Update state as pre-commit
|
||||
@@ -239,7 +240,7 @@ func (l *LNChannel) CreateHTLC(h *PaymentDescriptor) error {
|
||||
} else {
|
||||
//Future version may be able to do this..
|
||||
l.Unlock()
|
||||
fmt.Errorf("Cannot pull money")
|
||||
return fmt.Errorf("Cannot pull money")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user