From d17a97b4857972181c83e051a41144ba00033947 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 30 Dec 2013 10:59:14 -0600 Subject: [PATCH] Correct verifychain RPC call return. The return value should be a boolean for compatibility. --- rpcserver.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index d9bb9703..b290ada8 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1194,9 +1194,7 @@ func handleVerifyChain(s *rpcServer, cmd btcjson.Cmd, walletNotification chan [] c := cmd.(*btcjson.VerifyChainCmd) err := verifyChain(s.server.db, c.CheckLevel, c.CheckDepth) - if err != nil { - } - return "", nil + return err == nil, nil } // parseCmd parses a marshaled known command, returning any errors as a