Skip to content

Commit 3cbc3f9

Browse files
committed
core: remove unused var
1 parent 0c56792 commit 3cbc3f9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

core/blockchain.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ var (
111111
errChainStopped = errors.New("blockchain is stopped")
112112
errInvalidOldChain = errors.New("invalid old chain")
113113
errInvalidNewChain = errors.New("invalid new chain")
114-
115-
// slowBlockProcessThreshold defines the threshold (10 Mgas per second) for
116-
// considering a block execution as slow. Detailed performance metrics will be
117-
// printed if debug mode is enabled.
118-
slowBlockProcessThreshold = float64(10)
119114
)
120115

121116
var (

core/blockchain_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (s *ExecuteStats) logSlow(block *types.Block, slowBlockThreshold uint64) {
102102
if slowBlockThreshold == 0 || s.MgasPerSecond == 0 {
103103
return
104104
}
105-
if s.MgasPerSecond > slowBlockProcessThreshold {
105+
if s.MgasPerSecond > float64(slowBlockThreshold) {
106106
return
107107
}
108108
msg := fmt.Sprintf(`

0 commit comments

Comments
 (0)