mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
Electra: exclude empty requests in requests list (#14580)
* implementing new decisions around exectuion requests * fixing test fixture * adding in more edge case checks and tests * changelog * fixing unsafe type cast * Update beacon-chain/execution/engine_client_test.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * Update proto/engine/v1/electra.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * Update proto/engine/v1/electra.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * Update proto/engine/v1/electra.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * Update proto/engine/v1/electra.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * Update proto/engine/v1/electra_test.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * Update proto/engine/v1/electra_test.go Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> * updating based on preston's feedback and adding more tests for edge cases * adding more edgecases, and unit tests * fixing tests * missed some export changes * adding more tests * Update proto/engine/v1/electra.go Co-authored-by: Potuz <potuz@prysmaticlabs.com> * reducing complexity of function based on feedback --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
This commit is contained in:
@@ -1769,7 +1769,9 @@ func fixturesStruct() *payloadFixtures {
|
||||
Proofs: []hexutil.Bytes{[]byte("proof1"), []byte("proof2")},
|
||||
Blobs: []hexutil.Bytes{{'a'}, {'b'}},
|
||||
},
|
||||
ExecutionRequests: []hexutil.Bytes{depositRequestBytes, withdrawalRequestBytes, consolidationRequestBytes},
|
||||
ExecutionRequests: []hexutil.Bytes{append([]byte{pb.DepositRequestType}, depositRequestBytes...),
|
||||
append([]byte{pb.WithdrawalRequestType}, withdrawalRequestBytes...),
|
||||
append([]byte{pb.ConsolidationRequestType}, consolidationRequestBytes...)},
|
||||
}
|
||||
parent := bytesutil.PadTo([]byte("parentHash"), fieldparams.RootLength)
|
||||
sha3Uncles := bytesutil.PadTo([]byte("sha3Uncles"), fieldparams.RootLength)
|
||||
|
||||
Reference in New Issue
Block a user