mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-14 12:24:58 +00:00
[NOD-294] Fix golint in deploy.sh and fix all lint warnings (#380)
* [NOD-294] Fix golint in deploy.sh and fixed all lint errors * [NOD-294] Fix typos in comments * [NOD-294] Convert VirtualForTest into alias of *virtualBlock * [NOD-294] Fixed some more typos in comments
This commit is contained in:
@@ -3995,7 +3995,7 @@ func (s *Server) jsonRPCRead(w http.ResponseWriter, r *http.Request, isAdmin boo
|
||||
//
|
||||
// RPC quirks can be enabled by the user to avoid compatibility issues
|
||||
// with software relying on Core's behavior.
|
||||
if request.ID == nil && !(config.MainConfig().RPCQuirks && request.JsonRPC == "") {
|
||||
if request.ID == nil && !(config.MainConfig().RPCQuirks && request.JSONRPC == "") {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -997,7 +997,7 @@ out:
|
||||
//
|
||||
// RPC quirks can be enabled by the user to avoid compatibility issues
|
||||
// with software relying on Core's behavior.
|
||||
if request.ID == nil && !(config.MainConfig().RPCQuirks && request.JsonRPC == "") {
|
||||
if request.ID == nil && !(config.MainConfig().RPCQuirks && request.JSONRPC == "") {
|
||||
if !c.authenticated {
|
||||
break out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user