rpcserver: replace DebugBuild cmp w/ IsDevBuild in AbandonChannel

This commit is contained in:
Conner Fromknecht committed 2018-10-05 13:04:45 +09:00
1 parent 5706c12d69
commit 2e489fcf24
1 file changed
+3 -3
+3 -3
View File
@@ -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