Fix api.Block json serialization

This commit is contained in:
Martin Boehm 2019-03-20 17:49:21 +01:00
parent 1d8389bb2c
commit 6784ecd6b3

View File

@ -295,7 +295,7 @@ type Blocks struct {
type Block struct { type Block struct {
Paging Paging
bchain.BlockInfo bchain.BlockInfo
TxCount int `json:"TxCount"` TxCount int `json:"txCount"`
Transactions []*Tx `json:"txs,omitempty"` Transactions []*Tx `json:"txs,omitempty"`
} }