From e06864d8c257c712785d54f1d6106e5ee15a09f2 Mon Sep 17 00:00:00 2001 From: drk Date: Fri, 4 Oct 2024 10:40:18 -0500 Subject: [PATCH] Added conversion related fields to stats --- quaistats/quaistats.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quaistats/quaistats.go b/quaistats/quaistats.go index 07c86eebc6..f6cb59fd6d 100644 --- a/quaistats/quaistats.go +++ b/quaistats/quaistats.go @@ -1019,6 +1019,9 @@ type blockDetailStats struct { QiType bool `json:"qiType"` UncleCount uint64 `json:"uncleCount"` WoCount uint64 `json:"woCount"` + QiToQuai *big.Int `json:"qiToQuai"` + QuaiToQi *big.Int `json:"quaiToQi"` + ExchangeRate *big.Int `json:"exchangeRate"` } // Everyone sends every block @@ -1286,6 +1289,9 @@ func (s *Service) assembleBlockDetailStats(block *types.WorkObject) *blockDetail QiType: qiType, UncleCount: uncleCount, WoCount: woCount, + QiToQuai: block.QiToQuai(), + QuaiToQi: block.QuaiToQi(), + ExchangeRate: block.ExchangeRate(), } }