ReScan -> Rescan

This commit is contained in:
Josh Rickmar 2013-11-18 09:13:02 -05:00
parent d20f958c92
commit 9dbf75029f
2 changed files with 6 additions and 6 deletions

View file

@ -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)
}

View file

@ -684,7 +684,7 @@ var jsoncmdtests = []struct {
id: float64(1),
PrivKey: "somereallongprivatekey",
Label: "some text",
ReScan: false,
Rescan: false,
},
},
{