From 145ff5814837d9fc951493ad3f16f22e9bf04e2b Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Mon, 11 Sep 2017 12:19:41 +0200 Subject: [PATCH] types: more BlockHeader fields --- types.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types.go b/types.go index 6857480e..3ec602cf 100644 --- a/types.go +++ b/types.go @@ -39,15 +39,15 @@ type Tx struct { } type Block struct { - Hash string `json:"hash"` - Next string `json:"nextblockhash"` - Height uint32 `json:"height"` - Txids []string `json:"tx"` - Txs []*Tx `json:"_"` + BlockHeader + Txids []string `json:"tx"` + Txs []*Tx `json:"_"` } type BlockHeader struct { - Hash string `json:"hash"` - Next string `json:"nextblockhash"` - Height uint32 `json:"height"` + Hash string `json:"hash"` + Prev string `json:"prevblockhash"` + Next string `json:"nextblockhash"` + Height uint32 `json:"height"` + Confirmations int `json:"confirmations"` }