ssvlabs / ssv-spec

GNU General Public License v3.0
25 stars 21 forks source link

RunnerRole can be compressed farther on wire #423

Open GalRogozinski opened 1 month ago

GalRogozinski commented 1 month ago

Description

RunnerRole takes 4 bytes. Since this field is transmitted on wire we should take it down to 1 byte, since we only have 6 Roles.

moshe-blox commented 1 month ago

+1

I'd suggest to not only change the SSZ representation but also the Go representation of RunnerRole to type byte.