From 2e489fcf24c1b4ea8eff4aa0087c514c5fc19cb7 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 26 Sep 2018 02:43:46 -0700 Subject: [PATCH] rpcserver: replace DebugBuild cmp w/ IsDevBuild in AbandonChannel --- rpcserver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index 850434081..f3e3abfb4 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