Correct verifychain RPC call return.

The return value should be a boolean for compatibility.
This commit is contained in:
Dave Collins 2013-12-30 10:59:14 -06:00
parent 3bfeabb47a
commit d17a97b485

View file

@ -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