Have listsinceblock return a btcjson result type.
ok @jrick
This commit is contained in:
parent
1b69fd63ff
commit
d9432fe8ad
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue