Skip to content

Commit

Permalink
Populate L1OriginHash in aggregate method
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Sep 26, 2024
1 parent 53635f9 commit 04a01ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions enclave/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (s *Server) ExecuteStateless(
return nil, errors.New("invalid parent hash")
}

previousTxHash := types.DeriveSha(types.Transactions(previousBlockTxs), trie.NewStackTrie(nil))
previousTxHash := types.DeriveSha(previousBlockTxs, trie.NewStackTrie(nil))
if previousTxHash != previousBlockHeader.TxHash {
return nil, errors.New("invalid tx hash")
}
Expand Down Expand Up @@ -364,8 +364,9 @@ func (s *Server) Aggregate(ctx context.Context, configHash common.Hash, prevOutp
}

return &Proposal{
OutputRoot: outputRoot,
Signature: sig,
OutputRoot: outputRoot,
Signature: sig,
L1OriginHash: l1OriginHash,
}, nil
}

Expand Down

0 comments on commit 04a01ac

Please sign in to comment.