rpcserver: replace DebugBuild cmp w/ IsDevBuild in AbandonChannel
This commit is contained in:
parent
5706c12d69
commit
2e489fcf24
@ -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…
Reference in New Issue
Block a user