Closed terencechain closed 3 years ago
Would not this be something like [MAX_EXECUTION_TRANSACTIONS][MAX_BYTES_PER_OPAQUE_TRANSACTION]byte which is already supported?
it would be something like ssz-max: MAX_EXECUTION_TRANSACTIONS, MAX_BYTES_PER_OPAQUE_TRANSACTION
then. Does fastssz support this format for the tag?
Doesn't seem like
type Transactions struct {
Opaque [][]byte `json:"opaque" ssz-size"?,?" ssz-max:"2048,2048"`
}
is supported as we get:
failed to encode Transactions: [][]byte expects a ssz-size tag
Opened https://github.com/ferranbt/fastssz/pull/41/files, lemme know if this makes sense @ferranbt
We'll need to support nested
List
for the upcomingmerge
milestone. Referencing the spec below,transactions
inBeaconBlockBody
is a nestedList
which I don't think we have ever had it before. Can we please add support this?https://github.com/ethereum/eth2.0-specs/blob/dev/specs/merge/beacon-chain.md#executionpayload
cc @ferranbt