Skip to content

Commit

Permalink
add chain to block stat reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev authored and wizeguyy committed Jan 25, 2023
1 parent 3428eed commit 345f2bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quaistats/quaistats.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ type blockStats struct {
TxHash common.Hash `json:"transactionsRoot"`
Root common.Hash `json:"stateRoot"`
Uncles uncleStats `json:"uncles"`
Chain []int `json:"chain"`
}

// txStats is the information to report about individual transactions.
Expand Down Expand Up @@ -672,6 +673,7 @@ func (s *Service) assembleBlockStats(block *types.Block) *blockStats {
TxHash: header.TxHash(),
Root: header.Root(),
Uncles: uncles,
Chain: IntArrayLocation(common.NodeLocation),
}
}

Expand Down

0 comments on commit 345f2bc

Please sign in to comment.