Revert "eth/catalyst: set random value in dev mode (#27940)"

This reverts commit 12d3fe4705.
This commit is contained in:
devopsbo3 2023-11-10 12:27:53 -06:00 committed by GitHub
parent 91787e119f
commit ff97f768af

View file

@ -17,7 +17,6 @@
package catalyst
import (
"crypto/rand"
"errors"
"sync"
"time"
@ -150,13 +149,10 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal) error {
c.setCurrentState(header.Hash(), *finalizedHash)
}
var random [32]byte
rand.Read(random[:])
fcResponse, err := c.engineAPI.ForkchoiceUpdatedV2(c.curForkchoiceState, &engine.PayloadAttributes{
Timestamp: tstamp,
SuggestedFeeRecipient: feeRecipient,
Withdrawals: withdrawals,
Random: random,
})
if err != nil {
return err