From b790373ad117efc4de5c697c12a43905bbd65174 Mon Sep 17 00:00:00 2001 From: ImJeremyHe Date: Wed, 28 Aug 2024 14:06:30 +0800 Subject: [PATCH] Fix tests --- arbos/block_processor.go | 3 --- execution/gethexec/executionengine.go | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arbos/block_processor.go b/arbos/block_processor.go index b9ac1cbfe0..48f88416b9 100644 --- a/arbos/block_processor.go +++ b/arbos/block_processor.go @@ -556,7 +556,6 @@ func FinalizeBlock(header *types.Header, txs types.Transactions, statedb *state. var sendCount uint64 var nextL1BlockNumber uint64 var arbosVersion uint64 - var hotShotHeight uint64 if header.Number.Uint64() == chainConfig.ArbitrumChainParams.GenesisBlockNum { arbosVersion = chainConfig.ArbitrumChainParams.InitialArbOSVersion @@ -572,14 +571,12 @@ func FinalizeBlock(header *types.Header, txs types.Transactions, statedb *state. sendCount, _ = acc.Size() nextL1BlockNumber, _ = state.Blockhashes().L1BlockNumber() arbosVersion = state.ArbOSVersion() - hotShotHeight = binary.BigEndian.Uint64(header.MixDigest[24:32]) } arbitrumHeader := types.HeaderInfo{ SendRoot: sendRoot, SendCount: sendCount, L1BlockNumber: nextL1BlockNumber, ArbOSFormatVersion: arbosVersion, - HotShotHeight: hotShotHeight, } arbitrumHeader.UpdateHeaderWithInfo(header) header.Root = statedb.IntermediateRoot(true) diff --git a/execution/gethexec/executionengine.go b/execution/gethexec/executionengine.go index 623aa5225b..a67ef78aa7 100644 --- a/execution/gethexec/executionengine.go +++ b/execution/gethexec/executionengine.go @@ -789,9 +789,8 @@ func (s *ExecutionEngine) resultFromHeader(header *types.Header) (*execution.Mes } info := types.DeserializeHeaderExtraInformation(header) return &execution.MessageResult{ - BlockHash: header.Hash(), - SendRoot: info.SendRoot, - HotShotHeight: info.HotShotHeight, + BlockHash: header.Hash(), + SendRoot: info.SendRoot, }, nil }