[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

@@ -461,7 +461,7 @@ func TestUnmarshalCmdErrors(t *testing.T) {
{
name: "unregistered type",
request: btcjson.Request{
JsonRPC: "1.0",
JSONRPC: "1.0",
Method: "bogusMethod",
Params: nil,
ID: nil,
@@ -471,7 +471,7 @@ func TestUnmarshalCmdErrors(t *testing.T) {
{
name: "incorrect number of params",
request: btcjson.Request{
JsonRPC: "1.0",
JSONRPC: "1.0",
Method: "getBlockCount",
Params: []json.RawMessage{[]byte(`"bogusparam"`)},
ID: nil,
@@ -481,7 +481,7 @@ func TestUnmarshalCmdErrors(t *testing.T) {
{
name: "invalid type for a parameter",
request: btcjson.Request{
JsonRPC: "1.0",
JSONRPC: "1.0",
Method: "getBlock",
Params: []json.RawMessage{[]byte("1")},
ID: nil,
@@ -491,7 +491,7 @@ func TestUnmarshalCmdErrors(t *testing.T) {
{
name: "invalid JSON for a parameter",
request: btcjson.Request{
JsonRPC: "1.0",
JSONRPC: "1.0",
Method: "getBlock",
Params: []json.RawMessage{[]byte(`"1`)},
ID: nil,