From 1de34c7df4bf726636fa3dc670f539a49f7dd588 Mon Sep 17 00:00:00 2001 From: pk910 Date: Mon, 23 Sep 2024 19:48:07 +0200 Subject: [PATCH] regenerate ssz for `electra.BeaconBlockBody` --- spec/electra/attestation_ssz.go | 4 ++-- spec/electra/attesterslashing_ssz.go | 2 +- spec/electra/beaconblockbody_ssz.go | 15 +++++++++++++-- spec/electra/consolidationrequest_ssz.go | 4 +++- spec/electra/depositrequest_ssz.go | 2 +- spec/electra/executionrequests_ssz.go | 2 +- spec/electra/indexedattestation_ssz.go | 2 +- spec/electra/withdrawalrequest_ssz.go | 3 ++- 8 files changed, 24 insertions(+), 10 deletions(-) diff --git a/spec/electra/attestation_ssz.go b/spec/electra/attestation_ssz.go index 462fb9fe..899f6eb9 100644 --- a/spec/electra/attestation_ssz.go +++ b/spec/electra/attestation_ssz.go @@ -1,5 +1,5 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 5a2d052da32c0d16b124cd692d1cc933fcbfc680beed934cdfa374656ab41afe +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra @@ -135,7 +135,7 @@ func (a *Attestation) HashTreeRootWith(hh ssz.HashWalker) (err error) { return } - // Field (3) 'Signature' + // Field (2) 'Signature' hh.PutBytes(a.Signature[:]) // Field (3) 'CommitteeBits' diff --git a/spec/electra/attesterslashing_ssz.go b/spec/electra/attesterslashing_ssz.go index a5a6cad2..50cef347 100644 --- a/spec/electra/attesterslashing_ssz.go +++ b/spec/electra/attesterslashing_ssz.go @@ -1,5 +1,5 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 7cf8a9d246b40208a079cd3bae3821d8d3f9b41f2c3852cf2b94f0cf8568b4c1 +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra diff --git a/spec/electra/beaconblockbody_ssz.go b/spec/electra/beaconblockbody_ssz.go index 19a2a06a..2c0d8f7e 100644 --- a/spec/electra/beaconblockbody_ssz.go +++ b/spec/electra/beaconblockbody_ssz.go @@ -1,5 +1,5 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 145f583ffefea9d2c418401980a7199f582dbe71558fe80f718fadd3931c034f +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra @@ -84,6 +84,13 @@ func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error) { dst = ssz.WriteOffset(dst, offset) offset += len(b.BlobKZGCommitments) * 48 + // Offset (12) 'ExecutionRequests' + dst = ssz.WriteOffset(dst, offset) + if b.ExecutionRequests == nil { + b.ExecutionRequests = new(ExecutionRequests) + } + offset += b.ExecutionRequests.SizeSSZ() + // Field (3) 'ProposerSlashings' if size := len(b.ProposerSlashings); size > 16 { err = ssz.ErrListTooBigFn("BeaconBlockBody.ProposerSlashings", size, 16) @@ -178,6 +185,11 @@ func (b *BeaconBlockBody) MarshalSSZTo(buf []byte) (dst []byte, err error) { dst = append(dst, b.BlobKZGCommitments[ii][:]...) } + // Field (12) 'ExecutionRequests' + if dst, err = b.ExecutionRequests.MarshalSSZTo(dst); err != nil { + return + } + return } @@ -413,7 +425,6 @@ func (b *BeaconBlockBody) UnmarshalSSZ(buf []byte) error { return err } } - return err } diff --git a/spec/electra/consolidationrequest_ssz.go b/spec/electra/consolidationrequest_ssz.go index 51a0db22..7c5eeb90 100644 --- a/spec/electra/consolidationrequest_ssz.go +++ b/spec/electra/consolidationrequest_ssz.go @@ -1,9 +1,11 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: a0960436212943f5595c94087ee709d30a033a29aefc5236b2ea5582d783504c +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra import ( + "github.com/attestantio/go-eth2-client/spec/bellatrix" + "github.com/attestantio/go-eth2-client/spec/phase0" ssz "github.com/ferranbt/fastssz" ) diff --git a/spec/electra/depositrequest_ssz.go b/spec/electra/depositrequest_ssz.go index 3dbca129..f8dbba47 100644 --- a/spec/electra/depositrequest_ssz.go +++ b/spec/electra/depositrequest_ssz.go @@ -1,5 +1,5 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: a0960436212943f5595c94087ee709d30a033a29aefc5236b2ea5582d783504c +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra diff --git a/spec/electra/executionrequests_ssz.go b/spec/electra/executionrequests_ssz.go index b31640f9..8f3f94fa 100644 --- a/spec/electra/executionrequests_ssz.go +++ b/spec/electra/executionrequests_ssz.go @@ -1,5 +1,5 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: a0960436212943f5595c94087ee709d30a033a29aefc5236b2ea5582d783504c +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra diff --git a/spec/electra/indexedattestation_ssz.go b/spec/electra/indexedattestation_ssz.go index 9ca0e7cc..f73f51cb 100644 --- a/spec/electra/indexedattestation_ssz.go +++ b/spec/electra/indexedattestation_ssz.go @@ -1,5 +1,5 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 7cf8a9d246b40208a079cd3bae3821d8d3f9b41f2c3852cf2b94f0cf8568b4c1 +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra diff --git a/spec/electra/withdrawalrequest_ssz.go b/spec/electra/withdrawalrequest_ssz.go index 1a21ce85..11b72f9f 100644 --- a/spec/electra/withdrawalrequest_ssz.go +++ b/spec/electra/withdrawalrequest_ssz.go @@ -1,9 +1,10 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: a0960436212943f5595c94087ee709d30a033a29aefc5236b2ea5582d783504c +// Hash: 3a9a3226e05c9a4f4fe19244999dacfbc39962ae1ff5d0ae99f7634afef8ea5c // Version: 0.1.3 package electra import ( + "github.com/attestantio/go-eth2-client/spec/bellatrix" "github.com/attestantio/go-eth2-client/spec/phase0" ssz "github.com/ferranbt/fastssz" )