From 00874b6ec24ee41f0c7a5774728b06049e7623e8 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 23 Jun 2014 16:51:21 -0500 Subject: [PATCH] Unmarshal correct lockunspent outpoints parameter. --- jsoncmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsoncmd.go b/jsoncmd.go index 59df43282..5a9a13211 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -4905,7 +4905,7 @@ func (cmd *LockUnspentCmd) UnmarshalJSON(b []byte) error { optArgs := make([][]TransactionInput, 0, 1) if len(r.Params) > 1 { var transactions []TransactionInput - if err := json.Unmarshal(r.Params[0], &transactions); err != nil { + if err := json.Unmarshal(r.Params[1], &transactions); err != nil { return fmt.Errorf("second optional parameter 'transactions' "+ "must be a JSON array of transaction input JSON objects: %v", err) }