Additional statediff metrics and logging. #304

Merged
telackey merged 7 commits from telackey/logging_001 into v1.10.26-statediff-v4 2023-01-12 17:19:38 +00:00
3 changed files with 5 additions and 2 deletions
Showing only changes of commit 571051ef17 - Show all commits

View File

@ -18,6 +18,7 @@ package statediff
import ( import (
"context" "context"
"github.com/ethereum/go-ethereum/statediff/types" "github.com/ethereum/go-ethereum/statediff/types"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"

View File

@ -17,8 +17,9 @@
package statediff package statediff
import ( import (
"github.com/ethereum/go-ethereum/metrics"
"strings" "strings"
"github.com/ethereum/go-ethereum/metrics"
) )
const ( const (

View File

@ -18,9 +18,10 @@ package statediff
import ( import (
"fmt" "fmt"
"time"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"time"
) )
func countStateDiffBegin(block *types.Block) (time.Time, log.Logger) { func countStateDiffBegin(block *types.Block) (time.Time, log.Logger) {