Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor types & consensus core #66

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Update consensus_core.go to remove import cycle errors after refactor…
…ing types
  • Loading branch information
DarkLord017 authored Oct 1, 2024
commit 61b69d4b862f1797e5998067274145dc57b59bcd
10 changes: 5 additions & 5 deletions consensus/consensus_core/consensus_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package consensus_core
import (
"bytes"

"github.com/BlocSoc-iitr/selene/consensus/types"
"github.com/ugorji/go/codec"
)

Expand All @@ -12,6 +11,7 @@ type BLSPubKey [48]byte
type Address [20]byte
type LogsBloom [256]byte
type SignatureBytes [96]byte
type Transaction = [1073741824]byte //1073741824

type BeaconBlock struct {
Slot uint64
Expand Down Expand Up @@ -125,10 +125,10 @@ type ExecutionPayload struct {
ExtraData [32]byte
BaseFeePerGas uint64
BlockHash Bytes32
Transactions []types.Transaction `ssz-max:"1048576"`
Withdrawals []types.Withdrawal `ssz-max:"16"`
BlobGasUsed *uint64 // Deneb-specific field, use pointer for optionality
ExcessBlobGas *uint64 // Deneb-specific field, use pointer for optionality
Transactions []Transaction `ssz-max:"1048576"`
Withdrawals []Withdrawal `ssz-max:"16"`
BlobGasUsed *uint64 // Deneb-specific field, use pointer for optionality
ExcessBlobGas *uint64 // Deneb-specific field, use pointer for optionality
}

type SignedBlsToExecutionChange struct {
Expand Down
Loading