use of tech.pegasys.teku.spec.datastructures.operations.AttesterSlashing.AttesterSlashingSchema in project teku by ConsenSys.
the class BeaconBlockBodySchemaPhase0Test method create_mainnet.
@Test
public void create_mainnet() {
final Spec spec = TestSpecFactory.createMainnetPhase0();
final SpecConfig specConfig = spec.getGenesisSpecConfig();
final BeaconBlockBodySchemaPhase0 specA = BeaconBlockBodySchemaPhase0.create(specConfig, new AttesterSlashingSchema(new IndexedAttestationSchema(specConfig)));
final BeaconBlockBodySchemaPhase0 specB = BeaconBlockBodySchemaPhase0.create(specConfig, new AttesterSlashingSchema(new IndexedAttestationSchema(specConfig)));
assertThat(specA).isEqualTo(specB);
}
use of tech.pegasys.teku.spec.datastructures.operations.AttesterSlashing.AttesterSlashingSchema in project teku by ConsenSys.
the class BeaconBlockBodySchemaPhase0Test method create_minimal.
@Test
public void create_minimal() {
final Spec spec = TestSpecFactory.createMinimalPhase0();
final SpecConfig specConfig = spec.getGenesisSpecConfig();
final BeaconBlockBodySchemaPhase0 specA = BeaconBlockBodySchemaPhase0.create(specConfig, new AttesterSlashingSchema(new IndexedAttestationSchema(specConfig)));
final BeaconBlockBodySchemaPhase0 specB = BeaconBlockBodySchemaPhase0.create(specConfig, new AttesterSlashingSchema(new IndexedAttestationSchema(specConfig)));
assertThat(specA).isEqualTo(specB);
}
Aggregations