mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
Use Gwei for value in get header log (#13608)
This commit is contained in:
parent
7b955c94ec
commit
5e74c798d4
@ -18,6 +18,7 @@ import (
|
|||||||
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
|
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
|
||||||
"github.com/prysmaticlabs/prysm/v4/encoding/bytesutil"
|
"github.com/prysmaticlabs/prysm/v4/encoding/bytesutil"
|
||||||
"github.com/prysmaticlabs/prysm/v4/encoding/ssz"
|
"github.com/prysmaticlabs/prysm/v4/encoding/ssz"
|
||||||
|
"github.com/prysmaticlabs/prysm/v4/math"
|
||||||
"github.com/prysmaticlabs/prysm/v4/monitoring/tracing"
|
"github.com/prysmaticlabs/prysm/v4/monitoring/tracing"
|
||||||
"github.com/prysmaticlabs/prysm/v4/network/forks"
|
"github.com/prysmaticlabs/prysm/v4/network/forks"
|
||||||
"github.com/prysmaticlabs/prysm/v4/runtime/version"
|
"github.com/prysmaticlabs/prysm/v4/runtime/version"
|
||||||
@ -231,7 +232,7 @@ func (vs *Server) getPayloadHeaderFromBuilder(ctx context.Context, slot primitiv
|
|||||||
}
|
}
|
||||||
|
|
||||||
l := log.WithFields(logrus.Fields{
|
l := log.WithFields(logrus.Fields{
|
||||||
"value": v.String(),
|
"gweiValue": math.WeiToGwei(v),
|
||||||
"builderPubKey": fmt.Sprintf("%#x", bid.Pubkey()),
|
"builderPubKey": fmt.Sprintf("%#x", bid.Pubkey()),
|
||||||
"blockHash": fmt.Sprintf("%#x", header.BlockHash()),
|
"blockHash": fmt.Sprintf("%#x", header.BlockHash()),
|
||||||
"slot": slot,
|
"slot": slot,
|
||||||
|
Loading…
Reference in New Issue
Block a user