Name field WorkID to make golint happy.
This commit is contained in:
parent
00874b6ec2
commit
dc84f95fe9
2 changed files with 3 additions and 3 deletions
|
@ -6168,7 +6168,7 @@ func (cmd *StopCmd) UnmarshalJSON(b []byte) error {
|
||||||
// a SubmitBlockCmd command.
|
// a SubmitBlockCmd command.
|
||||||
type SubmitBlockOptions struct {
|
type SubmitBlockOptions struct {
|
||||||
// must be provided if server provided a workid with template.
|
// must be provided if server provided a workid with template.
|
||||||
WorkId string `json:"workid,omitempty"`
|
WorkID string `json:"workid,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubmitBlockCmd is a type handling custom marshaling and
|
// SubmitBlockCmd is a type handling custom marshaling and
|
||||||
|
|
|
@ -1473,12 +1473,12 @@ var jsoncmdtests = []struct {
|
||||||
f: func() (Cmd, error) {
|
f: func() (Cmd, error) {
|
||||||
return NewSubmitBlockCmd(testId,
|
return NewSubmitBlockCmd(testId,
|
||||||
"lotsofhex",
|
"lotsofhex",
|
||||||
&SubmitBlockOptions{WorkId: "otherstuff"})
|
&SubmitBlockOptions{WorkID: "otherstuff"})
|
||||||
},
|
},
|
||||||
result: &SubmitBlockCmd{
|
result: &SubmitBlockCmd{
|
||||||
id: testId,
|
id: testId,
|
||||||
HexBlock: "lotsofhex",
|
HexBlock: "lotsofhex",
|
||||||
Options: &SubmitBlockOptions{WorkId: "otherstuff"},
|
Options: &SubmitBlockOptions{WorkID: "otherstuff"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue