Skip to content

Commit

Permalink
Fix header clear
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Oct 2, 2024
1 parent cbfd5b3 commit 8ed7067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enclave/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,11 @@ func (s *Server) ExecuteStateless(
}

expectedRoot := blockHeader.Root
blockHeader.Root = common.Hash{}
blockHeader.ReceiptHash = common.Hash{}
block := types.NewBlockWithHeader(blockHeader).WithBody(types.Body{
Transactions: blockTxs,
})
block.Header().Root = common.Hash{}
block.Header().ReceiptHash = common.Hash{}
stateRoot, _, err := core.ExecuteStateless(config.ChainConfig, block, w)
if err != nil {
return nil, fmt.Errorf("failed to execute stateless: %w", err)
Expand Down

0 comments on commit 8ed7067

Please sign in to comment.