Commit Graph

422 Commits

Author SHA1 Message Date
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
a87fe88d97
Fix bug in boolean bitfield
The length generated when converting from a string was incorrect.
2018-09-30 14:24:03 +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
Paul Hauner
9dcec214af
Add block validation code
This was created in another branch along with a whole bunch of other
commits building out databases and other common elements.

This full history of these works is available on master, however it
should not be necessary.
2018-09-26 13:00:25 +10:00
Paul Hauner
c8ff539686
Merge database works, directory restructuring 2018-09-26 11:58:46 +10:00
Paul Hauner
baa7b06b56
Fix clippy lints 2018-09-26 11:54:13 +10:00
Paul Hauner
966d891cb5
Remove validation fns (will be added in a PR) 2018-09-26 11:40:28 +10:00
Paul Hauner
3188d32423
Fix unused dep warning 2018-09-26 11:38:12 +10:00
Paul Hauner
362b7b2513
Remove some stray print statements 2018-09-25 23:40:01 +10:00
Paul Hauner
eedfa8c8ea
Add more unique errors in validate ssz block 2018-09-25 23:35:10 +10:00
Paul Hauner
310662ee17
Fix shard_block_hash in block val. tests 2018-09-25 23:34:44 +10:00
Paul Hauner
177c04dc1a
Fix bitfield setting in block val. test 2018-09-25 23:34:25 +10:00
Paul Hauner
e1e494b9aa
Fix parent_hashes generation in block val. test 2018-09-25 23:33:20 +10:00
Paul Hauner
55e0e7d05d
Add/fix message hashing in block validation tests 2018-09-25 23:32:35 +10:00
Paul Hauner
6529b4c09f
Fix pub key getting in signature verification 2018-09-25 23:31:58 +10:00
Paul Hauner
9207a44bce
Fix parent_hashes bug in message_generation 2018-09-25 23:31:39 +10:00
Paul Hauner
8d2e9f33c7
Progress further with block validation tests 2018-09-25 22:10:47 +10:00
Paul Hauner
748b50c08c
Fix bit shift function in attestation validation 2018-09-25 22:10:12 +10:00
Paul Hauner
da1e0c8a59
Change bitfield serialization to little-endian 2018-09-25 22:09:30 +10:00
Paul Hauner
dc7d2ff150
Move helpers.rs into common/delegation 2018-09-25 12:32:51 +10:00
Paul Hauner
d9046e4c1b
Fix warnings 2018-09-25 12:32:40 +10:00
Paul Hauner
83d95f1d34
Restructure directories. Add dead_code allows 2018-09-25 12:20:13 +10:00
Paul Hauner
4212d8fc7d
Fix bug introduced in previous commit 2018-09-25 09:31:59 +10:00
Paul Hauner
bb81bacb4e
Add comments to attestation fns, fix bug 2018-09-25 09:29:56 +10:00
Paul Hauner
209076e371
Fix ssz_split bug 2018-09-25 07:17:14 +10:00
Paul Hauner
1677b6dcc8
Progress on block validation 2018-09-24 23:35:51 +10:00
Paul Hauner
2141b8c623
Add attestion ssz splitter, change dir structure 2018-09-24 21:53:42 +10:00
Paul Hauner
c55b94053b
Tidy validation signatures 2018-09-24 18:09:01 +10:00
Paul Hauner
26537c1184
Progress further on attestation validation 2018-09-24 18:08:48 +10:00
Paul Hauner
f9f5a9e49c
Implement error type specific to ValidatorStore 2018-09-24 18:08:00 +10:00