Merge latest master in v0.2.0

This commit is contained in:
Age Manning
2020-04-08 16:46:37 +10:00
144 changed files with 2603 additions and 1308 deletions

View File

@@ -1,5 +1,5 @@
# Bump the test tag here and in .gitlab-ci.yml and CI will take care of updating the cached tarballs
TESTS_TAG := v0.10.1
TESTS_TAG := v0.11.1
TESTS = general minimal mainnet
TARBALLS = $(patsubst %,%-$(TESTS_TAG).tar.gz,$(TESTS))

View File

@@ -81,7 +81,11 @@ impl<E: EthSpec> EpochTransition<E> for Slashings {
fn run(state: &mut BeaconState<E>, spec: &ChainSpec) -> Result<(), EpochProcessingError> {
let mut validator_statuses = ValidatorStatuses::new(&state, spec)?;
validator_statuses.process_attestations(&state, spec)?;
process_slashings(state, validator_statuses.total_balances.current_epoch, spec)?;
process_slashings(
state,
validator_statuses.total_balances.current_epoch(),
spec,
)?;
Ok(())
}
}

View File

@@ -176,7 +176,6 @@ mod ssz_static {
ssz_static_test!(voluntary_exit, VoluntaryExit);
}
/* NOTE: SSZ generic tests disabled, missing from v0.10.0
#[test]
fn ssz_generic() {
SszGenericHandler::<BasicVector>::run();
@@ -186,7 +185,6 @@ fn ssz_generic() {
SszGenericHandler::<Uints>::run();
SszGenericHandler::<Containers>::run();
}
*/
#[test]
fn epoch_processing_justification_and_finalization() {