Skip to content

Commit

Permalink
Update consensus_core.go to handle Transactions correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkLord017 authored Nov 4, 2024
1 parent e35f0bd commit b355170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/consensus_core/consensus_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type BeaconBlock struct {
ParentRoot Bytes32 `json:"parent_root"`
StateRoot Bytes32 `json:"state_root"`
Body BeaconBlockBody `json:"body"`
Hash []byte
}

type Eth1Data struct {
Expand Down Expand Up @@ -119,7 +120,7 @@ type ExecutionPayload struct {
ExtraData []byte `json:"extra_data"`
BaseFeePerGas uint64 `json:"base_fee_per_gas"`
BlockHash Bytes32 `json:"block_hash"`
Transactions []Transaction `json:"transactions"`
Transactions [][]byte `json:"transactions"`
Withdrawals *[]Withdrawal `json:"withdrawals"` //Only capella and deneb
BlobGasUsed *uint64 `json:"blob_gas_used"` // Only deneb
ExcessBlobGas *uint64 `json:"excess_blob_gas"` // Only deneb
Expand Down Expand Up @@ -149,7 +150,6 @@ type BeaconBlockBody struct {
ExecutionPayload ExecutionPayload `json:"execution_payload"`
BlsToExecutionChanges *[]SignedBlsToExecutionChange `json:"bls_to_execution_changes"` //Only capella and deneb
BlobKzgCommitments *[][]byte `json:"blob_kzg_commitments"` // Dynamic slice
Hash []byte
}

type Header struct {
Expand Down

0 comments on commit b355170

Please sign in to comment.