d04fde3ba9
## Issue Addressed Closes https://github.com/sigp/lighthouse/issues/3241 Closes https://github.com/sigp/lighthouse/issues/3242 ## Proposed Changes * [x] Implement logic to remove equivocating validators from fork choice per https://github.com/ethereum/consensus-specs/pull/2845 * [x] Update tests to v1.2.0-rc.1. The new test which exercises `equivocating_indices` is passing. * [x] Pull in some SSZ abstractions from the `tree-states` branch that make implementing Vec-compatible encoding for types like `BTreeSet` and `BTreeMap`. * [x] Implement schema upgrades and downgrades for the database (new schema version is V11). * [x] Apply attester slashings from blocks to fork choice ## Additional Info * This PR doesn't need the `BTreeMap` impl, but `tree-states` does, and I don't think there's any harm in keeping it. But I could also be convinced to drop it. Blocked on #3322.
28 lines
614 B
Makefile
28 lines
614 B
Makefile
TESTS_TAG := v1.2.0-rc.1
|
|
TESTS = general minimal mainnet
|
|
TARBALLS = $(patsubst %,%-$(TESTS_TAG).tar.gz,$(TESTS))
|
|
|
|
REPO_NAME := consensus-spec-tests
|
|
OUTPUT_DIR := ./$(REPO_NAME)
|
|
|
|
BASE_URL := https://github.com/ethereum/$(REPO_NAME)/releases/download/$(TESTS_TAG)
|
|
|
|
$(OUTPUT_DIR): $(TARBALLS)
|
|
mkdir $(OUTPUT_DIR)
|
|
for test_tarball in $^; do \
|
|
tar -xzf $$test_tarball -C $(OUTPUT_DIR);\
|
|
done
|
|
|
|
%-$(TESTS_TAG).tar.gz:
|
|
wget $(BASE_URL)/$*.tar.gz -O $@
|
|
|
|
clean-test-files:
|
|
rm -rf $(OUTPUT_DIR)
|
|
|
|
clean-archives:
|
|
rm -f $(TARBALLS)
|
|
|
|
clean: clean-test-files clean-archives
|
|
|
|
.PHONY: clean clean-archives clean-test-files
|