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
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
0fbe4179b3
Heavily restructure repo
...
Separate most modules into crates
2018-10-02 16:41:10 +10:00
Paul Hauner
385564d637
Rename block_store functions
...
- Specified that the block is "serialized".
2018-09-30 11:25:12 +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
baa7b06b56
Fix clippy lints
2018-09-26 11:54:13 +10:00
Paul Hauner
d9046e4c1b
Fix warnings
2018-09-25 12:32:40 +10:00
Paul Hauner
f9f5a9e49c
Implement error type specific to ValidatorStore
2018-09-24 18:08:00 +10:00
Paul Hauner
69c97745d2
Set MemoryDB to use constant DB columns
...
This is instead of needing to be passed them each time open() is called.
2018-09-24 14:15:59 +10:00
Paul Hauner
7f01ec7c27
Extend validator_store
2018-09-24 13:16:39 +10:00
Paul Hauner
4d3422d332
Remove warnings, restructure validation files
2018-09-22 15:53:31 +10:00
Paul Hauner
bbf640c40d
Add progress to validate_block
2018-09-22 11:13:55 +10:00
Paul Hauner
af2ba7eebf
Fix clippy lint in MemoryDB
2018-09-22 11:13:10 +10:00
Paul Hauner
2c2d270f5c
Merge branch 'master' into validate_block
2018-09-22 08:18:43 +10:00
Paul Hauner
616cc616db
Fix some clippy lints
2018-09-22 08:17:31 +10:00
Paul Hauner
f0b432d81c
Add ValidatorStore
2018-09-21 18:52:03 +10:00
Paul Hauner
8cbd4f47a0
Move BlockStore test across to MemoryDB
2018-09-21 15:02:28 +10:00
Paul Hauner
e6a693b89c
Add exists()
function for MemoryDB
2018-09-21 15:02:00 +10:00
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
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
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
9689142883
Add "Client" concept and RocksDB
2018-08-16 14:17:28 +10:00