From 69aabdda644a245fc9b54dbf0b0296b8bd6c0690 Mon Sep 17 00:00:00 2001 From: CPerezz Date: Sun, 25 Jan 2026 18:49:39 +0100 Subject: [PATCH] style: fix goimports formatting in metrics files Align struct field comments and json tags per goimports rules. --- core/blockchain_metrics_test.go | 12 ++++++------ core/blockchain_stats_test.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/blockchain_metrics_test.go b/core/blockchain_metrics_test.go index 59349df8ca..1e0784dbba 100644 --- a/core/blockchain_metrics_test.go +++ b/core/blockchain_metrics_test.go @@ -55,12 +55,12 @@ func TestAccountMetrics(t *testing.T) { // Generate block with simple ETH transfer _, blocks, _ := GenerateChainWithGenesis(gspec, engine, 1, func(i int, b *BlockGen) { tx, _ := types.SignTx(types.NewTransaction( - 0, // nonce - receiver, // to - big.NewInt(1000), // value - 21000, // gas + 0, // nonce + receiver, // to + big.NewInt(1000), // value + 21000, // gas uint256.MustFromBig(newGwei(5)).ToBig(), // gasPrice - nil, // data + nil, // data ), signer, key) b.AddTx(tx) }) @@ -373,7 +373,7 @@ func TestCodeUpdatedMetricCREATE(t *testing.T) { byte(vm.PUSH1), 0x00, byte(vm.MSTORE), byte(vm.PUSH1), byte(runtimeLen), // size - byte(vm.PUSH1), 0x1c, // offset (32 - 4 = 28 = 0x1c) + byte(vm.PUSH1), 0x1c, // offset (32 - 4 = 28 = 0x1c) byte(vm.RETURN), } diff --git a/core/blockchain_stats_test.go b/core/blockchain_stats_test.go index 7e7663d37b..269168fde1 100644 --- a/core/blockchain_stats_test.go +++ b/core/blockchain_stats_test.go @@ -193,7 +193,7 @@ func TestLogSlowBlockEIP7702(t *testing.T) { AccountLoaded: 100, StorageLoaded: 500, CodeLoaded: 20, - CodeBytesRead: 4096, + CodeLoadBytes: 4096, AccountUpdated: 50, AccountDeleted: 2, StorageUpdated: 200,