Compare commits

..

1 Commits

Author SHA1 Message Date
colin
395a0b7fe2 fix(chunk & batch proposer): metrics (#1195)
Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
2024-03-14 19:00:35 +08:00
3 changed files with 9 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.3.70"
var tag = "v4.3.71"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -249,8 +249,8 @@ func (p *BatchProposer) proposeBatch() (*encoding.Batch, error) {
return nil, err
}
p.totalL1CommitGas.Set(float64(totalL1CommitCalldataSize))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitGas))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitCalldataSize))
p.totalL1CommitGas.Set(float64(totalL1CommitGas))
p.batchChunksNum.Set(float64(batch.NumChunks()))
return &batch, nil
}
@@ -282,8 +282,8 @@ func (p *BatchProposer) proposeBatch() (*encoding.Batch, error) {
}
p.batchFirstBlockTimeoutReached.Inc()
p.totalL1CommitGas.Set(float64(totalL1CommitCalldataSize))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitGas))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitCalldataSize))
p.totalL1CommitGas.Set(float64(totalL1CommitGas))
p.batchChunksNum.Set(float64(batch.NumChunks()))
batch.StartChunkIndex = dbChunks[0].Index

View File

@@ -276,8 +276,8 @@ func (p *ChunkProposer) proposeChunk() (*encoding.Chunk, error) {
}
p.chunkTxNum.Set(float64(chunk.NumTransactions()))
p.chunkEstimateL1CommitGas.Set(float64(totalL1CommitCalldataSize))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitGas))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitCalldataSize))
p.chunkEstimateL1CommitGas.Set(float64(totalL1CommitGas))
p.maxTxConsumption.Set(float64(crcMax))
p.chunkBlocksNum.Set(float64(len(chunk.Blocks)))
return &chunk, nil
@@ -317,8 +317,8 @@ func (p *ChunkProposer) proposeChunk() (*encoding.Chunk, error) {
p.chunkFirstBlockTimeoutReached.Inc()
p.chunkTxNum.Set(float64(chunk.NumTransactions()))
p.chunkEstimateL1CommitGas.Set(float64(totalL1CommitCalldataSize))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitGas))
p.totalL1CommitCalldataSize.Set(float64(totalL1CommitCalldataSize))
p.chunkEstimateL1CommitGas.Set(float64(totalL1CommitGas))
p.maxTxConsumption.Set(float64(crcMax))
p.chunkBlocksNum.Set(float64(len(chunk.Blocks)))
return &chunk, nil