Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeremyHe committed Aug 28, 2024
1 parent 41c0551 commit b790373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions arbos/block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions execution/gethexec/executionengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b790373

Please sign in to comment.