Have listsinceblock return a btcjson result type.

ok @jrick
This commit is contained in:
David Hill 2014-04-11 20:33:15 -04:00
parent 1b69fd63ff
commit d9432fe8ad

View file

@ -1121,9 +1121,10 @@ func ListSinceBlock(icmd btcjson.Cmd) (interface{}, *btcjson.Error) {
return nil, jsonErr return nil, jsonErr
} }
res := make(map[string]interface{}) res := btcjson.ListSinceBlockResult{
res["transactions"] = txInfoList Transactions: txInfoList,
res["lastblock"] = hash LastBlock: hash,
}
return res, nil return res, nil
} }