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
}
res := make(map[string]interface{})
res["transactions"] = txInfoList
res["lastblock"] = hash
res := btcjson.ListSinceBlockResult{
Transactions: txInfoList,
LastBlock: hash,
}
return res, nil
}