From 6e47250df80f9c25be0c8616e775b1b18f5ccf7c Mon Sep 17 00:00:00 2001 From: drk Date: Mon, 20 May 2024 19:03:26 -0500 Subject: [PATCH] bugfix: quaistats extTxInCount --- quaistats/quaistats.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/quaistats/quaistats.go b/quaistats/quaistats.go index 611d8d3f6b..693d8d83db 100644 --- a/quaistats/quaistats.go +++ b/quaistats/quaistats.go @@ -25,8 +25,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/dgrijalva/jwt-go" - "github.com/dominant-strategies/go-quai/consensus/misc" "io/ioutil" "math/big" "net" @@ -38,6 +36,9 @@ import ( "sync" "time" + "github.com/dgrijalva/jwt-go" + "github.com/dominant-strategies/go-quai/consensus/misc" + lru "github.com/hashicorp/golang-lru" "github.com/shirou/gopsutil/cpu" "github.com/shirou/gopsutil/mem" @@ -1067,7 +1068,7 @@ func (s *Service) cacheBlock(block *types.WorkObject) cachedBlock { txCount := float64(len(block.Transactions())) quaiTxCount := float64(len(block.QuaiTransactions())) qiTxCount := float64(len(block.QiTransactions())) - extTxInCount := txCount - quaiTxCount - qiTxCount + extTxInCount := float64(len(block.Body().ExternalTransactions())) currentBlock := cachedBlock{ number: block.NumberU64(s.backend.NodeCtx()),