mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-11 19:24:49 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user