Skip to content

Commit cd9a017

Browse files
authored
Merge pull request #2420 from CortexFoundation/dev
block size print
2 parents 5266a98 + 53675ef commit cd9a017

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

core/blockchain_insert.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ func (st *insertStats) report(chain []*types.Block, index int, dirty common.Stor
5454
if index == len(chain)-1 || elapsed >= statsReportLimit {
5555
// Count the number of transactions in this segment
5656
var txs int
57+
var size uint64
5758
for _, block := range chain[st.lastIndex : index+1] {
5859
txs += len(block.Transactions())
60+
size += block.Size()
5961
}
6062
end := chain[index]
6163

@@ -65,7 +67,7 @@ func (st *insertStats) report(chain []*types.Block, index int, dirty common.Stor
6567
"blocks", st.processed, "txs", txs, "mgas", float64(st.usedGas) / 1000000,
6668
"elapsed", common.PrettyDuration(elapsed), "mgasps", float64(st.usedGas) * 1000 / float64(elapsed),
6769
"hps", common.HashSize(float64(end.Difficulty().Int64()) / 13.5),
68-
"mgasps", mgasps,
70+
"mgasps", mgasps, "size", common.StorageSize(size),
6971
}
7072
timestamp := time.Unix(int64(end.Time()), 0)
7173
context = append(context, []any{"age", common.PrettyAge(timestamp)}...)

core/vm/jump_table.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ func validate(jt JumpTable) JumpTable {
7070

7171
func newOsakaInstructionSet() JumpTable {
7272
instructionSet := newMergeInstructionSet()
73-
//enable3860(&instructionSet) // Limit and meter initcode
7473
//enable4844(&instructionSet) // EIP-4844 (BLOBHASH opcode)
7574
//enable7516(&instructionSet) // EIP-7516 (BLOBBASEFEE opcode)
7675
//enable1153(&instructionSet) // EIP-1153 "Transient Storage"

0 commit comments

Comments
 (0)