Commit Graph

57 Commits

Author SHA1 Message Date
Paul Hauner
76f7922929
Merge branch 'master' into validate_block 2018-09-21 14:39:02 +10:00
Paul Hauner
f80d5ff0bd
Remove create_col from ClientDB trait 2018-09-21 14:12:53 +10:00
Paul Hauner
5b177a80b9
Add comments, fix warning in MemoryDB 2018-09-21 14:08:07 +10:00
Paul Hauner
66dc073c9b
Add basic memorydb implementation 2018-09-21 14:01:48 +10:00
Paul Hauner
51c842c236
Begin basics of block validation 2018-09-21 11:14:28 +10:00
Paul Hauner
d4e6f12ded
Add basic PoW chain db store 2018-09-21 11:13:07 +10:00
Paul Hauner
1065554216
Add BlockStore basics 2018-09-20 17:36:49 +10:00
Paul Hauner
f6330ce967
Add ClientDB exists() method 2018-09-20 17:36:23 +10:00
Paul Hauner
f64b8e30a1
Update SszBlock doc comments 2018-09-20 15:24:51 +10:00
Paul Hauner
43394c074c
Remove some dangling deps causing warnings 2018-09-20 15:17:34 +10:00
Paul Hauner
a4e61541aa
Add SszBlock test to check the canonical hash 2018-09-20 13:56:44 +10:00
Paul Hauner
2beeef8153
Add doc comments to SszBlock 2018-09-20 13:52:45 +10:00
Paul Hauner
55ce4998d8
Fix SszBlock bug relating to excess ssz
If you gave SszBlock too many bytes it would hash them too.
2018-09-20 13:51:58 +10:00
Paul Hauner
7020a08b7d
Finish SszBlock, add tests 2018-09-20 13:13:07 +10:00
Paul Hauner
a1b826906a
Fix SszBlock tests 2018-09-19 17:54:14 +10:00
Paul Hauner
1dd1714444
Half update some ssz indexes for ssz_block 2018-09-19 17:15:54 +10:00
Paul Hauner
ca951d0361
Move ssz block min length into block.rs, add tests 2018-09-19 16:57:21 +10:00
Paul Hauner
d0d336c341
Update AttestationRecord fields 2018-09-19 16:55:18 +10:00
Paul Hauner
61fddb2660
Implement basics for ssz_block 2018-09-19 16:15:05 +10:00
Paul Hauner
3dea40abe0
Add temporary (incomplete) aggsig serialization
It just sets them to 64 zeros. This needs to be fixed.
2018-09-19 16:14:31 +10:00
Paul Hauner
4d9b53478f
Add SszBlock comment 2018-09-19 15:24:06 +10:00
Paul Hauner
fe2127ea31 Update SszBlock to use new SSZ API 2018-09-19 14:52:36 +10:00
Paul Hauner
718b9ed7de Move to blake2b, start adding validate_block fn 2018-09-19 14:46:58 +10:00
Paul Hauner
6c8c4d9b1e Move state/block.rs into own mod, add SszBlock 2018-09-19 14:45:55 +10:00
Paul Hauner
693d635f8c Add canonical hash function 2018-09-19 14:45:03 +10:00
Paul Hauner
446e8ae53e Add doc comments to the db module 2018-09-18 17:40:07 +10:00
Paul Hauner
c077e8dbb9 Use different directory for rocksdb database 2018-09-18 17:39:50 +10:00
Paul Hauner
b6197ce04d Move db traits into own file 2018-09-18 17:39:38 +10:00
Paul Hauner
9b7463f68a Update ClientDB trait 2018-09-18 15:59:44 +10:00
Paul Hauner
3876c0261a Implement get and put on ClientDB trait 2018-09-18 10:27:29 +10:00
Paul Hauner
33b1e6ddf4 Partially implemented db wrapper
Addresses issue #12
2018-09-17 17:52:32 +10:00
Paul Hauner
513972b75c Add more plumbing for block processing 2018-09-14 15:52:49 +10:00
Paul Hauner
ffaffbcd90 Change ssz to use extend_from_slice()
This is instead of `append` which empties the source vector. This
doens't really ssem suitable for what we're doing.
2018-09-10 08:52:21 +02:00
Paul Hauner
cbaee765e3 Update ssz for Block 2018-09-10 07:51:57 +02:00
Paul Hauner
976e3a717e Add ssz for AttestationRecord 2018-09-10 07:51:44 +02:00
Paul Hauner
3399b02393 Expand sync works 2018-09-09 18:28:36 +02:00
Paul Hauner
c33d3689a7 Begin sync framework 2018-09-09 16:36:00 +02:00
Paul Hauner
b4ca8cbde8 Remove get_new_shuffling
I am not sure it is designed correctly
2018-08-31 02:20:10 +10:00
Paul Hauner
2277273caa Fix get_new_shuffling, add functioning test. 2018-08-29 16:57:25 +10:00
Paul Hauner
c1a0df8c17 Implement get_new_shuffling w/o tests 2018-08-28 17:51:57 +10:00
Paul Hauner
d57f86c9ad Add readme for shuffling 2018-08-28 17:51:23 +10:00
Paul Hauner
133769e6e5 Expose function directly in transition 2018-08-24 16:01:57 +10:00
Paul Hauner
6f08700ea0 Move shuffling mod into state/transition 2018-08-24 16:01:24 +10:00
Paul Hauner
1a00f5b429 Rename helpers -> attestation_parent_hashes 2018-08-24 15:48:43 +10:00
Paul Hauner
d0c020db9d Rename "get_signed_parent_hashes" 2018-08-24 15:41:00 +10:00
Paul Hauner
1a3da944e5 Add comment to get_signed_parent_hashes 2018-08-24 15:36:26 +10:00
Paul Hauner
4ec0de6f5e Use borrows for get_signed_parent_hases, add tests 2018-08-24 15:26:27 +10:00
Paul Hauner
859c48d5e5 Progress on parent hash selection. Add test. 2018-08-24 14:33:05 +10:00
Paul Hauner
8ba7601ab3 Add get_signed_parent_hashes (untested) 2018-08-23 18:32:18 +10:00
Paul Hauner
c4f9f927f3 Rename "state" to "chain_state" 2018-08-23 18:31:58 +10:00