Пример #1
0
 public BeaconBlock(Hash32 genesisStateRoot)
 {
     Slot       = new Slot(0);
     ParentRoot = Hash32.Zero;
     StateRoot  = genesisStateRoot;
     Body       = new BeaconBlockBody();
     Signature  = BlsSignature.Empty;
 }
Пример #2
0
 public BeaconBlock(Slot slot, Hash32 parentRoot, Hash32 stateRoot, BeaconBlockBody body, BlsSignature signature)
 {
     Slot       = slot;
     ParentRoot = parentRoot;
     StateRoot  = stateRoot;
     Body       = body;
     Signature  = signature;
     //Body = new BeaconBlockBody(randaoReveal,
     //    new Eth1Data(Hash32.Zero, 0),
     //    new Bytes32(), Array.Empty<Deposit>());
 }