mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
brontide: placate linter
This commit is contained in:
parent
16be46c1e5
commit
659ad459bb
1 changed files with 4 additions and 4 deletions
|
@ -2817,16 +2817,16 @@ func chooseDeliveryScript(upfront,
|
||||||
return requested, nil
|
return requested, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// If an upfront shutdown script was provided, and the user did not request
|
// If an upfront shutdown script was provided, and the user did not
|
||||||
// a custom shutdown script, return the upfront address.
|
// request a custom shutdown script, return the upfront address.
|
||||||
if len(requested) == 0 {
|
if len(requested) == 0 {
|
||||||
return upfront, nil
|
return upfront, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// If both an upfront shutdown script and a custom close script were
|
// If both an upfront shutdown script and a custom close script were
|
||||||
// provided, error if the user provided shutdown script does not match
|
// provided, error if the user provided shutdown script does not match
|
||||||
// the upfront shutdown script (because closing out to a different script
|
// the upfront shutdown script (because closing out to a different
|
||||||
// would violate upfront shutdown).
|
// script would violate upfront shutdown).
|
||||||
if !bytes.Equal(upfront, requested) {
|
if !bytes.Equal(upfront, requested) {
|
||||||
return nil, chancloser.ErrUpfrontShutdownScriptMismatch
|
return nil, chancloser.ErrUpfrontShutdownScriptMismatch
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue