public BeaconBlockBody() { RandaoReveal = new BlsSignature(); Eth1Data = new Eth1Data(0, Hash32.Zero); Graffiti = new Bytes32(); _proposerSlashings = new List <ProposerSlashing>(); _attesterSlashings = new List <AttesterSlashing>(); _attestations = new List <Attestation>(); _deposits = new List <Deposit>(); _voluntaryExits = new List <VoluntaryExit>(); }
public BeaconBlockBody( BlsSignature randaoReveal, Eth1Data eth1Data, Bytes32 graffiti, IEnumerable <ProposerSlashing> proposerSlashings, IEnumerable <AttesterSlashing> attesterSlashings, IEnumerable <Attestation> attestations, IEnumerable <Deposit> deposits, IEnumerable <VoluntaryExit> voluntaryExits) { RandaoReveal = randaoReveal; Eth1Data = eth1Data; Graffiti = graffiti; _proposerSlashings = new List <ProposerSlashing>(proposerSlashings); _attesterSlashings = new List <AttesterSlashing>(attesterSlashings); _attestations = new List <Attestation>(attestations); _deposits = new List <Deposit>(deposits); _voluntaryExits = new List <VoluntaryExit>(voluntaryExits); }
public void SetGraffiti(Bytes32 graffiti) => Graffiti = graffiti;