Skip to content

Commit

Permalink
more fixes but still WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prysm committed Nov 1, 2024
1 parent 4345016 commit e80f522
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
3 changes: 0 additions & 3 deletions beacon-chain/execution/engine_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ func (s *Service) ForkchoiceUpdated(
}
switch attrs.Version() {
case version.Bellatrix:
log.Error("BELLATRIX!!!!!!")
a, err := attrs.PbV1()
if err != nil {
return nil, nil, err
Expand All @@ -226,7 +225,6 @@ func (s *Service) ForkchoiceUpdated(
return nil, nil, handleRPCError(err)
}
case version.Capella:
log.Error("CAPELLLAAAAAAA")
a, err := attrs.PbV2()
if err != nil {
return nil, nil, err
Expand All @@ -236,7 +234,6 @@ func (s *Service) ForkchoiceUpdated(
return nil, nil, handleRPCError(err)
}
case version.Deneb, version.Electra:
log.Error("DENEBBBB")
a, err := attrs.PbV3()
if err != nil {
return nil, nil, err
Expand Down
3 changes: 3 additions & 0 deletions testing/endtoend/component_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func (c *componentHandler) setup() {
c.eth1Proxy = proxies
}

// timeout while we wait for the eth1 client to sync
time.Sleep(10 * time.Second)

// Beacon nodes.
beaconNodes := components.NewBeaconNodes(config)
g.Go(func() error {
Expand Down
22 changes: 11 additions & 11 deletions testing/endtoend/components/eth1/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,34 +257,34 @@ func RandomBlobTx(rpc *rpc.Client, f *filler.Filler, sender common.Address, nonc
// 4844 transaction without AL
tip, feecap, err := getCaps(rpc, gasPrice)
if err != nil {
return nil, err
return nil, errors.Wrap(err, "getCaps")
}
data, err := randomBlobData()
if err != nil {
return nil, err
return nil, errors.Wrap(err, "randomBlobData")
}
return New4844Tx(nonce, &to, gas, chainID, tip, feecap, value, code, big.NewInt(1000000), data, make(types.AccessList, 0)), nil
case 1:
// 4844 transaction with AL nonce, to, value, gas, gasPrice, code
tx := types.NewTx(&types.AccessListTx{
Nonce: nonce,
To: &to,
Value: value,
Gas: gas,
GasPrice: gasPrice,
Data: code,
Nonce: nonce,
To: &to,
Value: value,
Gas: gas,
//GasPrice: gasPrice,
Data: code,
})
al, err := txfuzz.CreateAccessList(rpc, tx, sender)
if err != nil {
return nil, err
return nil, errors.Wrap(err, "CreateAccessList")
}
tip, feecap, err := getCaps(rpc, gasPrice)
if err != nil {
return nil, err
return nil, errors.Wrap(err, "getCaps")
}
data, err := randomBlobData()
if err != nil {
return nil, err
return nil, errors.Wrap(err, "randomBlobData")
}
return New4844Tx(nonce, &to, gas, chainID, tip, feecap, value, code, big.NewInt(1000000), data, *al), nil
}
Expand Down
2 changes: 1 addition & 1 deletion testing/endtoend/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const (

jaegerTracingPort = 9150

startupBufferSecs = 5
startupBufferSecs = 35
)

func logDir() string {
Expand Down
2 changes: 1 addition & 1 deletion time/slots/slottime.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func SyncCommitteePeriodStartEpoch(e primitives.Epoch) (primitives.Epoch, error)
// given slot start time
func SecondsSinceSlotStart(s primitives.Slot, genesisTime, timeStamp uint64) (uint64, error) {
if timeStamp < genesisTime+uint64(s)*params.BeaconConfig().SecondsPerSlot {
return 0, fmt.Errorf("could not compute seconds since slot start: invalid timestamp. got %d, want %d", timeStamp, genesisTime+uint64(s)*params.BeaconConfig().SecondsPerSlot)
return 0, fmt.Errorf("could not compute seconds since slot start: invalid timestamp.slot%d got %d, want %d", s, timeStamp, genesisTime+uint64(s)*params.BeaconConfig().SecondsPerSlot)
}
return timeStamp - genesisTime - uint64(s)*params.BeaconConfig().SecondsPerSlot, nil
}
Expand Down

0 comments on commit e80f522

Please sign in to comment.