Grant Wuerker
f64aa9e192
more validator tests
2018-12-02 19:21:17 -06:00
Grant Wuerker
1bd60062d9
renamed a couple tests
2018-11-20 19:51:43 -06:00
Grant Wuerker
1c5d04d727
a few more tests
2018-11-20 19:49:38 -06:00
Grant Wuerker
74ad689c21
removed cargo dep
2018-11-18 16:39:55 -06:00
Grant Wuerker
325e1b3f0a
different hashes in pow store
2018-11-18 16:38:15 -06:00
Grant Wuerker
9148c20630
fixed warnings
2018-11-18 16:31:22 -06:00
Grant Wuerker
005efc2e7a
beacon block tests
2018-11-18 11:00:05 -06:00
Grant Wuerker
bde0612e1d
validator store cleanup
2018-11-17 19:06:24 -06:00
Grant Wuerker
66bb31616c
Merge branch 'master' into stores-test-improvements
2018-11-17 10:50:09 -06:00
Grant Wuerker
66ca299092
rand import moved
2018-11-11 13:17:42 -06:00
Grant Wuerker
20961c612a
pow chain store tests added
2018-11-11 13:15:39 -06:00
Paul Hauner
900ffac5e0
Run rustfmt globally.
...
Using `$ cargo fmt` in the root. Closes #68 .
2018-11-04 15:35:55 +01:00
Paul Hauner
46da9b670f
Add untested minimum viable block processing
2018-10-30 15:49:32 +01:00
Paul Hauner
e27c4106e9
Add delete method to ClientDB
2018-10-29 20:28:50 +01:00
Paul Hauner
7f21fd325e
Add initial works on extending the chain
2018-10-25 10:14:43 +02:00
Paul Hauner
fa705229aa
Fix clippy lints
2018-10-16 15:24:50 +11:00
Paul Hauner
1207421d70
Fix broken block_store test
2018-10-16 13:46:18 +11:00
Paul Hauner
a862c82b37
Rename Block -> BeaconBlock
...
- Update types::block
- Update ssz_helpers::SszBlock
- Update db::stores::block_store
- Add new fields to types::Block
- Update SszBlock as per new Block fields
2018-10-15 14:57:14 +11:00
Paul Hauner
d729355c09
Add test to block_store, export BlockAtSlotError
2018-10-11 23:50:49 +11:00
Paul Hauner
8c1d72a32e
Return block hash with block_at_slot()
2018-10-10 20:51:13 +11:00
Paul Hauner
550ca79a4f
Add block_at_slot function to block store
...
This allows skipping back in the chain to find a block.
2018-10-10 18:16:30 +11:00
Paul Hauner
a65531ba95
Remove all libp2p and syncing code
...
This will all need to be rebuilt in the future.
This code will be available at a "legacy_libp2p" branch.
2018-10-09 13:36:54 +11:00
Age
8ae3c9adc1
small clippy fixes
2018-10-03 13:51:05 +10:00
Paul Hauner
0fbe4179b3
Heavily restructure repo
...
Separate most modules into crates
2018-10-02 16:41:10 +10:00
Paul Hauner
07bfd7e97d
Add tests for attestation_validation
2018-10-02 09:47:45 +10:00
Paul Hauner
cd3b2f5371
Add test for attestation msg generation
2018-10-02 09:47:20 +10:00
Paul Hauner
6b7677a206
Update block and attestation validation code
2018-10-02 09:46:14 +10:00
Paul Hauner
8e094b358f
Implement framework for testing attestation val.
2018-10-01 17:19:08 +09:30
Paul Hauner
8f5285875b
Refactor validation tests into integration tests
2018-10-01 16:37:34 +09:30
Paul Hauner
4d1f730c95
Restructure block validation directory
2018-09-30 16:25:28 +09:30
Paul Hauner
c3ec8a3407
Introduce AttestationValidationContext
...
This reduced code duplication.
2018-09-30 16:09:35 +09:30
Paul Hauner
b426c9e724
Remove "benches" feature
...
Now benches just live with the rest of the code in the default feature.
2018-09-30 16:09:07 +09:30
Paul Hauner
29ed29cfc3
Update benchmarks as per recent code changes
2018-09-30 15:38:22 +09:30
Paul Hauner
77b48b9822
Implement more tests for block validation
2018-09-30 14:25:42 +09:30
Paul Hauner
496adc0f0b
Fix bug in attestation val. bitfield checking
...
There was a logic error
2018-09-30 14:24:42 +09:30
Paul Hauner
9642c4b7e1
Simplify block validation tests
...
Move more parameters into get_simple_params()
2018-09-30 12:21:30 +09:30
Paul Hauner
5dd2361d21
Progress further with block validation
...
- Rename errors returned from SszBlock.
- Add parent_hash concept to block validation.
- Add more comments to block validation.
2018-09-30 11:26:36 +09:30
Paul Hauner
385564d637
Rename block_store functions
...
- Specified that the block is "serialized".
2018-09-30 11:25:12 +09:30
Paul Hauner
0b99951bf8
Refactor block val. into "BlockValidationContext"
2018-09-29 16:07:59 +09:30
Paul Hauner
bc27be147f
Further development on block validation
...
- Return a fully deserialized block from validate_ssz_block
- Ensure the parent_hash field is handled
2018-09-29 15:38:54 +09:30
Paul Hauner
e0e8aa98f4
Introduce "benches" feature
...
So that benchmarks don't run each time tests run
2018-09-29 13:01:33 +09:30
Paul Hauner
7c88f94377
Tidy comments in block validation
2018-09-29 12:32:33 +09:30
Paul Hauner
13467abd7f
Tidy benches file
2018-09-28 17:30:49 +09:30
Paul Hauner
8020b897c6
Refactor block val. benches to use test funtions
2018-09-28 17:15:42 +09:30
Paul Hauner
19ddbdefa8
Refact block val. tests to be more modular
2018-09-28 17:15:29 +09:30
Paul Hauner
b92d88d42b
Add (untested) parallelization for att validation
2018-09-28 15:38:51 +09:30
Paul Hauner
05fe231e41
Fix bug with bitfield validation
2018-09-28 15:37:53 +09:30
Paul Hauner
debc642b50
Move attestation validation into iter.for_each
2018-09-26 23:28:47 +10:00
Paul Hauner
a8b08fb300
Add first block validation benches
2018-09-26 14:06:16 +10:00
Paul Hauner
84bb40855f
Split block validation tests into functions
2018-09-26 13:31:58 +10:00