[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:
Svarog
2019-08-27 12:00:23 +03:00
committed by Ori Newman
parent c72b914050
commit 480b2ca07c
20 changed files with 60 additions and 28 deletions

View File

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

View File

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