types: more BlockHeader fields
parent
1c6d622834
commit
145ff58148
16
types.go
16
types.go
|
@ -39,15 +39,15 @@ type Tx struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Block struct {
|
type Block struct {
|
||||||
Hash string `json:"hash"`
|
BlockHeader
|
||||||
Next string `json:"nextblockhash"`
|
Txids []string `json:"tx"`
|
||||||
Height uint32 `json:"height"`
|
Txs []*Tx `json:"_"`
|
||||||
Txids []string `json:"tx"`
|
|
||||||
Txs []*Tx `json:"_"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type BlockHeader struct {
|
type BlockHeader struct {
|
||||||
Hash string `json:"hash"`
|
Hash string `json:"hash"`
|
||||||
Next string `json:"nextblockhash"`
|
Prev string `json:"prevblockhash"`
|
||||||
Height uint32 `json:"height"`
|
Next string `json:"nextblockhash"`
|
||||||
|
Height uint32 `json:"height"`
|
||||||
|
Confirmations int `json:"confirmations"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue