Name field WorkID to make golint happy.

This commit is contained in:
Dave Collins 2014-06-27 00:25:00 -05:00
parent 00874b6ec2
commit dc84f95fe9
2 changed files with 3 additions and 3 deletions

View file

@ -6168,7 +6168,7 @@ func (cmd *StopCmd) UnmarshalJSON(b []byte) error {
// a SubmitBlockCmd command.
type SubmitBlockOptions struct {
// 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

View file

@ -1473,12 +1473,12 @@ var jsoncmdtests = []struct {
f: func() (Cmd, error) {
return NewSubmitBlockCmd(testId,
"lotsofhex",
&SubmitBlockOptions{WorkId: "otherstuff"})
&SubmitBlockOptions{WorkID: "otherstuff"})
},
result: &SubmitBlockCmd{
id: testId,
HexBlock: "lotsofhex",
Options: &SubmitBlockOptions{WorkId: "otherstuff"},
Options: &SubmitBlockOptions{WorkID: "otherstuff"},
},
},
{