Gofmt.
This commit is contained in:
parent
5d91e16e7c
commit
8d7354f45b
2 changed files with 4 additions and 4 deletions
|
@ -2830,7 +2830,7 @@ func (cmd *GetRawChangeAddressCmd) UnmarshalJSON(b []byte) error {
|
||||||
// GetRawMempoolCmd is a type handling custom marshaling and
|
// GetRawMempoolCmd is a type handling custom marshaling and
|
||||||
// unmarshaling of getrawmempool JSON RPC commands.
|
// unmarshaling of getrawmempool JSON RPC commands.
|
||||||
type GetRawMempoolCmd struct {
|
type GetRawMempoolCmd struct {
|
||||||
id interface{}
|
id interface{}
|
||||||
Verbose bool
|
Verbose bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2847,7 +2847,7 @@ func NewGetRawMempoolCmd(id interface{}, optArgs ...bool) (*GetRawMempoolCmd, er
|
||||||
verbose = optArgs[0]
|
verbose = optArgs[0]
|
||||||
}
|
}
|
||||||
return &GetRawMempoolCmd{
|
return &GetRawMempoolCmd{
|
||||||
id: id,
|
id: id,
|
||||||
Verbose: verbose,
|
Verbose: verbose,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
@ -2892,7 +2892,7 @@ func (cmd *GetRawMempoolCmd) UnmarshalJSON(b []byte) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
optArgs := make([]bool, 0, 1)
|
optArgs := make([]bool, 0, 1)
|
||||||
if len(r.Params) == 1 {
|
if len(r.Params) == 1 {
|
||||||
verbose, ok := r.Params[0].(bool)
|
verbose, ok := r.Params[0].(bool)
|
||||||
if !ok {
|
if !ok {
|
||||||
return errors.New("first optional parameter verbose must be a bool")
|
return errors.New("first optional parameter verbose must be a bool")
|
||||||
|
|
|
@ -550,7 +550,7 @@ var jsoncmdtests = []struct {
|
||||||
return NewGetRawMempoolCmd(float64(1), true)
|
return NewGetRawMempoolCmd(float64(1), true)
|
||||||
},
|
},
|
||||||
result: &GetRawMempoolCmd{
|
result: &GetRawMempoolCmd{
|
||||||
id: float64(1),
|
id: float64(1),
|
||||||
Verbose: true,
|
Verbose: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue