update tests from v1.0.0-rc.0 to v1.0.0 (#1976)
This commit is contained in:
parent
1774da15f1
commit
a010ef2061
|
@ -54,7 +54,7 @@ See [this page](https://status-im.github.io/nimbus-eth2/medalla.html) for how to
|
||||||
## Related projects
|
## Related projects
|
||||||
|
|
||||||
* [status-im/nimbus-eth1](https://github.com/status-im/nimbus-eth1/): Nimbus for Ethereum 1
|
* [status-im/nimbus-eth1](https://github.com/status-im/nimbus-eth1/): Nimbus for Ethereum 1
|
||||||
* [ethereum/eth2.0-specs](https://github.com/ethereum/eth2.0-specs/tree/v1.0.0-rc.0#phase-0): Serenity specification that this project implements
|
* [ethereum/eth2.0-specs](https://github.com/ethereum/eth2.0-specs/tree/v1.0.0#phase-0): Serenity specification that this project implements
|
||||||
|
|
||||||
You can check where the beacon chain fits in the Ethereum ecosystem our Two-Point-Oh series: https://our.status.im/tag/two-point-oh/
|
You can check where the beacon chain fits in the Ethereum ecosystem our Two-Point-Oh series: https://our.status.im/tag/two-point-oh/
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ task test, "Run all tests":
|
||||||
buildAndRunBinary "test_fixture_const_sanity_check", "tests/official/", """-d:const_preset=mainnet -d:ETH2_SPEC="v1.0.0" -d:chronicles_sinks="json[file]""""
|
buildAndRunBinary "test_fixture_const_sanity_check", "tests/official/", """-d:const_preset=mainnet -d:ETH2_SPEC="v1.0.0" -d:chronicles_sinks="json[file]""""
|
||||||
|
|
||||||
# Generic SSZ test, doesn't use consensus objects minimal/mainnet presets
|
# Generic SSZ test, doesn't use consensus objects minimal/mainnet presets
|
||||||
buildAndRunBinary "test_fixture_ssz_generic_types", "tests/official/", """-d:chronicles_log_level=TRACE -d:chronicles_sinks="json[file]""""
|
buildAndRunBinary "test_fixture_ssz_generic_types", "tests/official/", """-d:ETH2_SPEC="v1.0.0" -d:chronicles_log_level=TRACE -d:chronicles_sinks="json[file]""""
|
||||||
|
|
||||||
# Consensus object SSZ tests
|
# Consensus object SSZ tests
|
||||||
# v0.12.3 is reasonably covered by rest of SSZ fixture tests and lack of
|
# v0.12.3 is reasonably covered by rest of SSZ fixture tests and lack of
|
||||||
|
@ -73,7 +73,7 @@ task test, "Run all tests":
|
||||||
buildAndRunBinary "test_fixture_ssz_consensus_objects", "tests/official/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:ETH2_SPEC="v1.0.0" -d:chronicles_sinks="json[file]""""
|
buildAndRunBinary "test_fixture_ssz_consensus_objects", "tests/official/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:ETH2_SPEC="v1.0.0" -d:chronicles_sinks="json[file]""""
|
||||||
|
|
||||||
# EF tests
|
# EF tests
|
||||||
buildAndRunBinary "all_fixtures_require_ssz", "tests/official/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:ETH2_SPEC="v0.12.3" -d:chronicles_sinks="json[file]""""
|
buildAndRunBinary "all_fixtures_require_ssz", "tests/official/", """-d:chronicles_log_level=TRACE -d:const_preset=mainnet -d:ETH2_SPEC="v1.0.0" -d:chronicles_sinks="json[file]""""
|
||||||
|
|
||||||
# Mainnet config
|
# Mainnet config
|
||||||
buildAndRunBinary "proto_array", "beacon_chain/fork_choice/", """-d:const_preset=mainnet -d:ETH2_SPEC="v0.12.3" -d:chronicles_sinks="json[file]""""
|
buildAndRunBinary "proto_array", "beacon_chain/fork_choice/", """-d:const_preset=mainnet -d:ETH2_SPEC="v0.12.3" -d:chronicles_sinks="json[file]""""
|
||||||
|
|
|
@ -51,7 +51,7 @@ export
|
||||||
when ETH2_SPEC == "v0.12.3":
|
when ETH2_SPEC == "v0.12.3":
|
||||||
const SPEC_VERSION* = "0.12.3"
|
const SPEC_VERSION* = "0.12.3"
|
||||||
else:
|
else:
|
||||||
const SPEC_VERSION* = "1.0.0-rc.0"
|
const SPEC_VERSION* = "1.0.0"
|
||||||
## Spec version we're aiming to be compatible with, right now
|
## Spec version we're aiming to be compatible with, right now
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
@ -153,7 +153,7 @@ when const_preset == "mainnet":
|
||||||
when ETH2_SPEC == "v0.12.3":
|
when ETH2_SPEC == "v0.12.3":
|
||||||
import ./presets/v0_12_3/mainnet
|
import ./presets/v0_12_3/mainnet
|
||||||
else:
|
else:
|
||||||
import ./presets/v1_0_0-rc_0/mainnet
|
import ./presets/v1_0_0/mainnet
|
||||||
export mainnet
|
export mainnet
|
||||||
|
|
||||||
elif const_preset == "minimal":
|
elif const_preset == "minimal":
|
||||||
|
@ -161,7 +161,7 @@ elif const_preset == "minimal":
|
||||||
when ETH2_SPEC == "v0.12.3":
|
when ETH2_SPEC == "v0.12.3":
|
||||||
import ./presets/v0_12_3/minimal
|
import ./presets/v0_12_3/minimal
|
||||||
else:
|
else:
|
||||||
import ./presets/v1_0_0-rc_0/minimal
|
import ./presets/v1_0_0/minimal
|
||||||
export minimal
|
export minimal
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -11,7 +11,7 @@ This book explains all the ways in which you can use Nimbus to either monitor th
|
||||||
### Helpful resources
|
### Helpful resources
|
||||||
|
|
||||||
- [nimbus-eth2 repository](github.com/status-im/nimbus-eth2)
|
- [nimbus-eth2 repository](github.com/status-im/nimbus-eth2)
|
||||||
- [eth2 specification](https://github.com/ethereum/eth2.0-specs/tree/v1.0.0-rc.0#phase-0)
|
- [eth2 specification](https://github.com/ethereum/eth2.0-specs/tree/v1.0.0#phase-0)
|
||||||
- [Ben Edgington's annotated spec](https://benjaminion.xyz/eth2-annotated-spec/phase0/beacon-chain/)
|
- [Ben Edgington's annotated spec](https://benjaminion.xyz/eth2-annotated-spec/phase0/beacon-chain/)
|
||||||
|
|
||||||
- [Vitalik's annotated spec](https://github.com/ethereum/annotated-spec/blob/master/phase0/beacon-chain.md)
|
- [Vitalik's annotated spec](https://github.com/ethereum/annotated-spec/blob/master/phase0/beacon-chain.md)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import testutils/fuzzing_engines
|
||||||
|
|
||||||
const
|
const
|
||||||
gitRoot = thisDir() / ".."
|
gitRoot = thisDir() / ".."
|
||||||
fixturesDir = gitRoot / "vendor" / "nim-eth2-scenarios" / "tests-v1.0.0-rc.0" / "mainnet" / "phase0" / "ssz_static"
|
fixturesDir = gitRoot / "vendor" / "nim-eth2-scenarios" / "tests-v1.0.0" / "mainnet" / "phase0" / "ssz_static"
|
||||||
|
|
||||||
fuzzingTestsDir = gitRoot / "tests" / "fuzzing"
|
fuzzingTestsDir = gitRoot / "tests" / "fuzzing"
|
||||||
fuzzingCorpusesDir = fuzzingTestsDir / "corpus"
|
fuzzingCorpusesDir = fuzzingTestsDir / "corpus"
|
||||||
|
|
|
@ -25,7 +25,7 @@ const
|
||||||
RewardsDirLeak = RewardsDirBase/"leak"/"pyspec_tests"
|
RewardsDirLeak = RewardsDirBase/"leak"/"pyspec_tests"
|
||||||
RewardsDirRandom = RewardsDirBase/"random"/"pyspec_tests"
|
RewardsDirRandom = RewardsDirBase/"random"/"pyspec_tests"
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/tree/v1.0.0-rc.0/tests/formats/rewards#rewards-tests
|
# https://github.com/ethereum/eth2.0-specs/tree/v1.0.0/tests/formats/rewards#rewards-tests
|
||||||
type Deltas = object
|
type Deltas = object
|
||||||
rewards: List[uint64, Limit VALIDATOR_REGISTRY_LIMIT]
|
rewards: List[uint64, Limit VALIDATOR_REGISTRY_LIMIT]
|
||||||
penalties: List[uint64, Limit VALIDATOR_REGISTRY_LIMIT]
|
penalties: List[uint64, Limit VALIDATOR_REGISTRY_LIMIT]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8516519728cfae4b44d0a9faea956352a4a417e7
|
Subproject commit 0055e33435a26fddbfbbf467a0290ee839f868b2
|
Loading…
Reference in New Issue