mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
rpcserver: replace DebugBuild cmp w/ IsDevBuild in AbandonChannel
This commit is contained in:
parent
5706c12d69
commit
2e489fcf24
1 changed files with 3 additions and 3 deletions
|
@ -1191,12 +1191,12 @@ out:
|
|||
func (r *rpcServer) AbandonChannel(ctx context.Context,
|
||||
in *lnrpc.AbandonChannelRequest) (*lnrpc.AbandonChannelResponse, error) {
|
||||
|
||||
// If this isn't the debug build, then we won't allow the RPC to be
|
||||
// If this isn't the dev build, then we won't allow the RPC to be
|
||||
// executed, as it's an advanced feature and won't be activated in
|
||||
// regular production/release builds.
|
||||
if !DebugBuild {
|
||||
if !build.IsDevBuild() {
|
||||
return nil, fmt.Errorf("AbandonChannel RPC call only " +
|
||||
"available in debug builds")
|
||||
"available in dev builds")
|
||||
}
|
||||
|
||||
// We'll parse out the arguments to we can obtain the chanPoint of the
|
||||
|
|
Loading…
Add table
Reference in a new issue