Skip to content

Commit

Permalink
Clean up dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Feb 7, 2024
1 parent 5688638 commit 62cb257
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions core/vm/contracts_suave_eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,47 +348,6 @@ func executableDataToDenebExecutionPayload(data *engine.ExecutableData) (*specDe
}, nil
}

// func executableDataToCapellaExecutionPayload(data *engine.ExecutableData) (*specCapella.ExecutionPayload, error) {
// transactionData := make([]bellatrix.Transaction, len(data.Transactions))
// for i, tx := range data.Transactions {
// transactionData[i] = bellatrix.Transaction(tx)
// }

// withdrawalData := make([]*specCapella.Withdrawal, len(data.Withdrawals))
// for i, wd := range data.Withdrawals {
// withdrawalData[i] = &specCapella.Withdrawal{
// Index: specCapella.WithdrawalIndex(wd.Index),
// ValidatorIndex: phase0.ValidatorIndex(wd.Validator),
// Address: bellatrix.ExecutionAddress(wd.Address),
// Amount: phase0.Gwei(wd.Amount),
// }
// }

// baseFeePerGas := new(boostTypes.U256Str)
// err := baseFeePerGas.FromBig(data.BaseFeePerGas)
// if err != nil {
// return nil, err
// }

// return &specCapella.ExecutionPayload{
// ParentHash: [32]byte(data.ParentHash),
// FeeRecipient: [20]byte(data.FeeRecipient),
// StateRoot: [32]byte(data.StateRoot),
// ReceiptsRoot: [32]byte(data.ReceiptsRoot),
// LogsBloom: types.BytesToBloom(data.LogsBloom),
// PrevRandao: [32]byte(data.Random),
// BlockNumber: data.Number,
// GasLimit: data.GasLimit,
// GasUsed: data.GasUsed,
// Timestamp: data.Timestamp,
// ExtraData: data.ExtraData,
// BaseFeePerGas: *baseFeePerGas,
// BlockHash: [32]byte(data.BlockHash),
// Transactions: transactionData,
// Withdrawals: withdrawalData,
// }, nil
// }

func (c *suaveRuntime) submitBundleJsonRPC(url string, method string, params []byte) ([]byte, error) {
request := map[string]interface{}{
"id": json.RawMessage([]byte("1")),
Expand Down

0 comments on commit 62cb257

Please sign in to comment.