Skip to content

Commit

Permalink
extend api block structure
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Aug 31, 2023
1 parent 028435c commit 9a1f804
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/api/apiBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ type Block struct {
Status string `json:"status,omitempty"`
RandSeed string `json:"randSeed,omitempty"`
PrevRandSeed string `json:"prevRandSeed,omitempty"`
PubKeyBitmap string `json:"pubKeyBitmap"`
Signature string `json:"signature,omitempty"`
LeaderSignature string `json:"leaderSignature,omitempty"`
ChainID string `json:"chainID,omitempty"`
SoftwareVersion string `json:"softwareVersion,omitempty"`
ReceiptsHash string `json:"receiptsHash,omitempty"`
Reserved []byte `json:"reserved,omitempty"`
GasProvided uint64 `json:"gasProvided"`
GasRefunded uint64 `json:"gasRefunded"`
GasPenalized uint64 `json:"gasPenalized"`
MaxGasLimit uint64 `json:"maxGasLimit"`
Timestamp time.Duration `json:"timestamp,omitempty"`
NotarizedBlocks []*NotarizedBlock `json:"notarizedBlocks,omitempty"`
MiniBlocks []*MiniBlock `json:"miniBlocks,omitempty"`
Expand Down

0 comments on commit 9a1f804

Please sign in to comment.