diff --git a/models/models.go b/models/models.go index b14a26e..0231677 100755 --- a/models/models.go +++ b/models/models.go @@ -121,18 +121,23 @@ type SmartContractExecutionInfo struct { } type Block struct { - Version string `json:"version"` - ID string `json:"block_id"` - Timestamp string `json:"timestamp"` - PrevID string `json:"prev_id"` - PrevProof string `json:"prev_proof"` - Transactions []string `json:"transactions"` - Proof BlockProof `json:"proof"` + Version string `json:"version"` + Header BlockHeader `json:"header"` + Transactions []string `json:"transactions"` + Proof BlockProof `json:"proof"` +} + +type BlockHeader struct { + BlockId string `json:"blockId"` + DcId string `json:"dcId"` + PrevId string `json:"prevId"` + PrevProof string `json:"prevProof"` + Timestamp string `json:"timestamp"` } type BlockProof struct { - Scheme string `json:"scheme"` Proof string `json:"proof"` + Scheme string `json:"scheme,omitempty"` Nonce int64 `json:"nonce,omitempty"` }