Commit Graph

1227 Commits

Author SHA1 Message Date
Paul Hauner
c8417ae009 Merge pull request #284 from michaelsproul/merkle-proofs
Implement library for verifying Merkle proofs
2019-03-07 12:30:04 +13:00
Paul Hauner
f4c4be7a37 Merge pull request #270 from thojest/lighthouse-252
ChainSpec selectable via CLI flag
2019-03-07 10:26:24 +13:00
Paul Hauner
8cb959478f Merge pull request #278 from michaelsproul/eth-types-0.5
Update ethereum-types to 0.5
2019-03-07 10:25:19 +13:00
Michael Sproul
7bb5e1c151 Implement library for verifying Merkle proofs. 2019-03-06 16:59:36 +11:00
Michael Sproul
6253167cac Update ethereum-types to 0.5 2019-03-06 10:08:35 +11:00
Paul Hauner
af8b8d519c Merge pull request #282 from michaelsproul/ssz-roundtrip
Remove SSZ round-trip test duplication
2019-03-06 09:51:45 +13:00
Michael Sproul
33a3161905 Remove SSZ round-trip test duplication
Closes #244
2019-03-05 17:29:08 +11:00
Michael Sproul
d519bc1388 Use cfg(test) for test macros 2019-03-05 17:29:08 +11:00
Paul Hauner
ebb7349ee3 Merge pull request #279 from ltfschoen/patch-1
docs: Fix typos
2019-03-05 19:22:18 +13:00
Paul Hauner
83ce114637 Merge pull request #280 from ltfschoen/patch-2
docs: Fix typo
2019-03-05 19:21:46 +13:00
Luke Schoen
2b1549358f docs: Fix typo 2019-03-04 14:53:52 +01:00
Luke Schoen
0eddfa5556 docs: Fix typos 2019-03-04 14:46:56 +01:00
Age Manning
44a978d591 Merge pull request #277 from sigp/test_harness_exits
Add Exit to test_harness YAML
2019-03-04 22:02:05 +11:00
Paul Hauner
5073ac7a98 Merge branch 'master' into test_harness_exits 2019-03-04 14:01:03 +11:00
Age Manning
0e1a14a628 Merge pull request #264 from sigp/yaml-chain-tests
YAML-defined test_harness routines
2019-03-04 13:19:25 +11:00
Paul Hauner
ef006bfb2c Add Exit support to test_harness 2019-03-04 12:21:24 +11:00
Paul Hauner
f4d8b41a09 Add Exit inclusion queue to BeaconChain 2019-03-04 12:20:59 +11:00
Paul Hauner
bc4acd9a5c Re-work module structure in test_harness
Obeys the standard where structs live in files with the same name
2019-03-04 09:43:19 +11:00
Paul Hauner
3aaa3ea024 Use clearer types in test_harness::Config 2019-03-04 09:30:09 +11:00
thojest
c28c07c17d validator_client: added default_value for spec; used unreachable macro for custom spec (lighthouse-252) 2019-03-03 14:15:00 +01:00
thojest
0b24a47b53 Merge branch 'master' into lighthouse-252 2019-03-03 14:01:57 +01:00
Paul Hauner
ef549aa38b Merge pull request #273 from mjkeating/tree_hash_container_fix
Brought algorithm in TreeHash macro up to spec
2019-03-03 20:01:47 +13:00
Paul Hauner
9d77f2b1a8 Add README to test_harness 2019-03-03 16:38:25 +11:00
Paul Hauner
697d1ef626 Add CLI option for log-level to test_harness 2019-03-03 16:15:00 +11:00
Paul Hauner
58002f68e1 Move test_harness yaml file 2019-03-03 16:14:40 +11:00
Paul Hauner
31129a47e8 Merge pull request #274 from sigp/fork-choice-update
Convert bitwise ghost to use u64 block heights.
2019-03-03 18:06:21 +13:00
Paul Hauner
ec0e13b764 Add comments to new functions 2019-03-03 15:32:44 +11:00
Paul Hauner
a29eca57a1 Rename test_harness::manifest to test_case
I thing `TestCase` is better than manifest -- a manifest is more of a
list of items than a series of steps and checks. Plus it conflicts with
a Cargo manifest.
2019-03-03 15:12:19 +11:00
Paul Hauner
48fc709109 Fix failing test 2019-03-03 15:08:13 +11:00
Paul Hauner
7b72934943 Add comments to test_harness::Manifest 2019-03-03 15:07:54 +11:00
Age Manning
60cfdf6e55 Convert bitwise ghost to use u64 block heights. 2019-03-03 13:35:15 +11:00
Paul Hauner
1703508385 Add comments to new BeaconChainHarness methods. 2019-03-03 12:02:58 +11:00
Paul Hauner
f5e4fe29d7 Add comments to new BeaconChain methods
- Adds comments
- Also drops a message from `warn` down to `debug`. It was giving
warnings even on an Ok result.
2019-03-03 11:54:51 +11:00
Paul Hauner
ede5685bc2 Fix warnings and clippy lints 2019-03-03 11:47:09 +11:00
Paul Hauner
87feeea1fd Remove merkle_index from test_harness YAML
IMO, this is an implementation detail that shouldn't be covered in these
tests.
2019-03-03 11:31:08 +11:00
Paul Hauner
a8c3b5fdd8 Update test_harness yaml
- Checks for attester slashing, now it is included in the chain.
- Renames suite to be more specific, use normal Eth2.0 naming
2019-03-03 11:19:27 +11:00
Paul Hauner
76a0ba2d6c Add attester slashing support to block processing
At spec v0.2.0
2019-03-03 11:18:12 +11:00
Paul Hauner
59128f842a Add verify_slashable_attestation spec method
As per v0.2.0 spec
2019-03-03 11:16:59 +11:00
Paul Hauner
3561d44cbe Update per-block processing for new AggPub wrapper
AggregatePublicKey newtype was introduced in previous commit
2019-03-03 11:12:18 +11:00
Paul Hauner
35ae1b6745 Add agg_pub to bls, add agg_sig.verify_multiple
- Adds a new-type wrapper for `AggregatePublicKey`, just like all the
other types.
- Adds the `verify_multiple` method to the `AggregateSignature` newtype,
as was introduced in a recent version of signature-schemes.
2019-03-03 11:10:38 +11:00
mjkeating
8a768819b0 brought algorithm in TreeHash macro to spec 2019-03-02 09:59:01 -08:00
Age Manning
684ef9f74c Merge pull request #271 from michaelsproul/log-int
Fix log_int implementation, removing floats
2019-03-03 00:13:55 +11:00
Paul Hauner
9156aa2203 Add info log when building test_harness chain dump
It helps people know why they're waiting
2019-03-02 20:20:06 +11:00
Paul Hauner
e2dd753f05 Merge branch 'master' into yaml-chain-tests 2019-03-02 20:18:09 +11:00
Paul Hauner
4db2f082e1 Add state-checks to test_harness YAML
Runs tests against a state at some slot
2019-03-02 20:17:14 +11:00
Paul Hauner
f5614381e1 Re-organise test_harness binary
Moves manifest and components into separate files.
2019-03-02 18:59:47 +11:00
Paul Hauner
db28cc1b92 Fix warnings in test_harness/src/bin.rs 2019-03-02 18:43:27 +11:00
Paul Hauner
c975d49ead Copy SlashableVote.. tests to SlashableAttestation
SlashableVoteData tests were just copied directly across
2019-03-02 18:39:52 +11:00
Paul Hauner
e59404f463 Change test_harness proposer_slashings YAML
Removes a lot of the detail from the `proposer_slashings` field -- IMO
this is not necessary in the test spec, the details of how a
proposer_slashing is created should be held in the program and the spec
should only define that one happens.
2019-03-02 18:37:21 +11:00
Paul Hauner
8e1380d7c4 Add ProposerSlashingBuilder
It is capable of producing double votes
2019-03-02 18:36:44 +11:00