示例#1
0
 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>();
 }
示例#2
0
 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);
 }
示例#3
0
 public void SetGraffiti(Bytes32 graffiti) => Graffiti = graffiti;