Skip to content

Commit

Permalink
bugfix: quaistats extTxInCount
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire committed May 21, 2024
1 parent dbdb818 commit 6e47250
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quaistats/quaistats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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()),
Expand Down

0 comments on commit 6e47250

Please sign in to comment.