Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 4c86f35

Browse files
committed
Update execution interface
1 parent 0975735 commit 4c86f35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

execution.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (c *PureEngineClient) InitChain(ctx context.Context, genesisTime time.Time,
139139
if err != nil {
140140
return nil, 0, fmt.Errorf("failed to get txs: %w", err)
141141
}
142-
return c.ExecuteTxs(ctx, payload, 1, genesisTime, stateRoot[:])
142+
return c.ExecuteTxs(ctx, payload, 1, genesisTime, stateRoot[:], nil)
143143
}
144144

145145
// GetTxs retrieves transactions from the current execution payload
@@ -209,7 +209,7 @@ func (c *PureEngineClient) GetTxs(ctx context.Context) ([][]byte, error) {
209209
}
210210

211211
// ExecuteTxs executes the given transactions at the specified block height and timestamp
212-
func (c *PureEngineClient) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte) (updatedStateRoot []byte, maxBytes uint64, err error) {
212+
func (c *PureEngineClient) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte, metadata map[string]interface{}) (updatedStateRoot []byte, maxBytes uint64, err error) {
213213
// special handling of block 1 (rollkit expects this to be genesis block)
214214
if blockHeight == 1 && len(txs) == 0 {
215215
_, stateRoot, gasLimit, err := c.getBlockInfo(ctx, blockHeight)

0 commit comments

Comments
 (0)