aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/block.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/types/block.go')
-rw-r--r--core/types/block.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/types/block.go b/core/types/block.go
index 91b71da..6762f14 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -38,15 +38,15 @@ const (
// Block represents a single event broadcasted on the network.
type Block struct {
- ProposerID ValidatorID
- ParentHash common.Hash
- Hash common.Hash
- Height uint64
- Timestamps map[ValidatorID]time.Time
- Acks map[common.Hash]struct{}
+ ProposerID ValidatorID `json:"proposer_id"`
+ ParentHash common.Hash `json:"parent_hash"`
+ Hash common.Hash `json:"hash"`
+ Height uint64 `json:"height"`
+ Timestamps map[ValidatorID]time.Time `json:"timestamps"`
+ Acks map[common.Hash]struct{} `json:"acks"`
- Ackeds map[common.Hash]struct{}
- State State
+ Ackeds map[common.Hash]struct{} `json:"-"`
+ State State `json:"-"`
}
func (b *Block) String() string {