Commit Graph

78 Commits

Author SHA1 Message Date
Paul Hauner
9dcf02e499 Add WIP libp2p floodsub 2018-07-28 10:02:45 +10:00
Paul Hauner
407946cfea Add comments to epoch.rs 2018-07-28 09:29:52 +10:00
Paul Hauner
9a0a106dca Add comments to main transition fn 2018-07-21 13:42:32 +10:00
Paul Hauner
c4559a5912 Tidy up new_active_state 2018-07-21 13:42:09 +10:00
Paul Hauner
f56b91f1ae Update epoch to fix height increment bug 2018-07-21 13:41:12 +10:00
Paul Hauner
ae9aef5bce Add pubkeystore mod 2018-07-21 13:40:49 +10:00
Paul Hauner
56734aff72 Remove scrap test 2018-07-20 17:49:25 +10:00
Paul Hauner
c2c456201f Ensure active state height is incrememented 2018-07-20 17:49:09 +10:00
Paul Hauner
751658b2be Add saturating sub for deposits 2018-07-20 17:48:51 +10:00
Paul Hauner
1cf1682a9b Add message to assert in attesters 2018-07-20 17:48:29 +10:00
Paul Hauner
ac0546baa0 Tidy get_attesters_and_proposers 2018-07-20 17:47:58 +10:00
Paul Hauner
e3005efb3d Add zero() method for Block 2018-07-20 17:47:29 +10:00
Paul Hauner
e353102e32 Implement slog 2018-07-20 17:47:10 +10:00
Paul Hauner
1c2613eb2b Implement compute_state_transition() 2018-07-17 18:08:10 +10:00
Paul Hauner
1fa54a60fb Implement compute_new_active_state() 2018-07-17 18:07:57 +10:00
Paul Hauner
3bca5e1d0f Implement initialize_new_epoch() 2018-07-17 18:06:53 +10:00
Paul Hauner
c2ffb1a396 Implement process_recent_attesters() 2018-07-17 18:04:34 +10:00
Paul Hauner
8b320ab24f Implement process_recent_proposers() 2018-07-17 17:54:14 +10:00
Paul Hauner
a6d0a0f85e Shift around some types in ActiveState, RecentProp 2018-07-17 17:35:32 +10:00
Paul Hauner
c79db16ffb Add fields to config 2018-07-17 17:34:57 +10:00
Paul Hauner
e5979ddca3 Derive clone for several struct 2018-07-17 17:32:55 +10:00
NatoliChris
5b922c7b41
Add tests for shuffle uniqueness and large validators. 2018-07-17 16:12:48 +10:00
Age
9be81b138f
Add simple test for deposits 2018-07-17 16:07:34 +10:00
Paul Hauner
ecf0ad1534 Implement update_ffg_and_crosslink_process() 2018-07-17 13:21:58 +10:00
Paul Hauner
52b4f86eee Implement Eq and Clone for bool bitfield 2018-07-17 13:21:28 +10:00
Paul Hauner
96fe99f8fa Implement vote_key for part. xlinks and agg votes 2018-07-17 13:20:38 +10:00
Paul Hauner
a8ef18c7e9 Split old state_transition.rs into transition/ dir 2018-07-16 16:52:25 +10:00
Paul Hauner
6f0bbd47fa Add (incompleted) process_attestations fn 2018-07-16 16:34:59 +10:00
Paul Hauner
573294beee Add len() to BooleanBitfield 2018-07-16 16:34:34 +10:00
Paul Hauner
f0d61c340a Add method to get ValidatorRecord for testing 2018-07-16 16:34:04 +10:00
Paul Hauner
ca40229cb4 Implement increment_validator_sets() 2018-07-16 11:57:32 +10:00
Paul Hauner
6ed6c94791 Add Clone for validator_record (req. crate update) 2018-07-16 11:56:38 +10:00
Paul Hauner
068ed4255f Add param to config 2018-07-16 11:56:29 +10:00
Paul Hauner
92c91f6d6c Add test for process_crosslinks() 2018-07-15 14:10:01 +10:00
Paul Hauner
13b2a674c9 Add comments, test for crosslink_processing() 2018-07-15 13:47:54 +10:00
Paul Hauner
6e9738fd6f Implement (w/o tests) process_crosslinks() 2018-07-15 12:14:19 +10:00
Paul Hauner
061946b5c7 Add zero() to PartialCrosslinkRecord 2018-07-15 12:13:45 +10:00
Paul Hauner
20f976ca40 Implement Clone for CrosslinkRecord 2018-07-15 12:13:27 +10:00
Paul Hauner
f025600966 Implement get_crosslink_notaries 2018-07-14 21:48:32 +10:00
Paul Hauner
24c5e1a2f5 Fix warnings warnings 2018-07-13 15:40:18 +10:00
Paul Hauner
27b8c03414 Add work on crosslinks 2018-07-13 15:37:21 +10:00
Paul Hauner
b1066509c1 Add zero method to ValidatorRecord 2018-07-13 15:35:48 +10:00
Paul Hauner
b1b2337ec3 Update assert msg 2018-07-13 15:34:46 +10:00
Paul Hauner
3ef88be04b Add params to config 2018-07-13 15:34:05 +10:00
Paul Hauner
3c4c9b9ff6 Fix mistaken mut on boolean_bitfield 2018-07-12 18:53:11 +10:00
Paul Hauner
f48fb29b03 Add num_true_bits to bitfield 2018-07-12 18:19:20 +10:00
Paul Hauner
eb2ac990d7 Update bool_bitfield tests 2018-07-12 17:50:02 +10:00
Paul Hauner
acb5a17748 Move deposit process into file & add tests 2018-07-12 17:49:42 +10:00
Paul Hauner
b1679af191 Create new "transition" mod, add untested fn
Untested fn is process_ffg_deposits. Will add tests now.
2018-07-12 16:41:44 +10:00
Paul Hauner
5e362567e6 Add BooleanBitfield struct 2018-07-12 14:59:50 +10:00