types: more BlockHeader fields
parent
1c6d622834
commit
145ff58148
16
types.go
16
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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue