ReScan -> Rescan
This commit is contained in:
parent
d20f958c92
commit
9dbf75029f
2 changed files with 6 additions and 6 deletions
10
jsoncmd.go
10
jsoncmd.go
|
@ -3510,7 +3510,7 @@ type ImportPrivKeyCmd struct {
|
|||
id interface{}
|
||||
PrivKey string
|
||||
Label string
|
||||
ReScan bool
|
||||
Rescan bool
|
||||
}
|
||||
|
||||
// Enforce that ImportPrivKeyCmd satisifies the Cmd interface.
|
||||
|
@ -3542,7 +3542,7 @@ func NewImportPrivKeyCmd(id interface{}, privkey string, optArgs ...interface{})
|
|||
id: id,
|
||||
PrivKey: privkey,
|
||||
Label: label,
|
||||
ReScan: rescan,
|
||||
Rescan: rescan,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
@ -3567,12 +3567,12 @@ func (cmd *ImportPrivKeyCmd) MarshalJSON() ([]byte, error) {
|
|||
},
|
||||
}
|
||||
|
||||
if cmd.Label != "" || cmd.ReScan {
|
||||
if cmd.Label != "" || cmd.Rescan {
|
||||
raw.Params = append(raw.Params, cmd.Label)
|
||||
}
|
||||
|
||||
if cmd.ReScan {
|
||||
raw.Params = append(raw.Params, cmd.ReScan)
|
||||
if cmd.Rescan {
|
||||
raw.Params = append(raw.Params, cmd.Rescan)
|
||||
}
|
||||
return json.Marshal(raw)
|
||||
}
|
||||
|
|
|
@ -684,7 +684,7 @@ var jsoncmdtests = []struct {
|
|||
id: float64(1),
|
||||
PrivKey: "somereallongprivatekey",
|
||||
Label: "some text",
|
||||
ReScan: false,
|
||||
Rescan: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue