mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
style: fix goimports formatting in metrics files
Align struct field comments and json tags per goimports rules.
This commit is contained in:
parent
690e526c30
commit
69aabdda64
2 changed files with 7 additions and 7 deletions
|
|
@ -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),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue