diff --git a/rpcserver.go b/rpcserver.go index 85043408..f3e3abfb 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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