Commit Graph

49 Commits

Author SHA1 Message Date
Michael Sproul
37c67117d3 state_processing: remove spurious withdrawal credentials check 2019-05-29 10:56:21 +10:00
Michael Sproul
01039546cb state_processing: sort attester slashing indices
This will be "to spec" if eth2.0-specs#1126 is merged
2019-05-27 17:46:05 +10:00
Paul Hauner
55ef75a44e Fix underflow in verify_indexed_attestation 2019-05-24 14:08:19 +10:00
Paul Hauner
29792c56d5 Fix bug with checking for dust in transfers 2019-05-23 16:52:20 +10:00
Paul Hauner
892d891977 Fix bugs in deposit processing 2019-05-22 18:54:26 +10:00
Paul Hauner
350dc1ad80 Add type hint to hashset AND. 2019-05-22 11:45:05 +10:00
Paul Hauner
04791dfc58 Update verify_exit to spec v0.6.1 2019-05-22 11:45:01 +10:00
Paul Hauner
bb7ee642d8 Update verify_transfer to spec v0.6.1 2019-05-22 11:28:29 +10:00
Michael Sproul
545fb10005 spec v0.6.1: deposit processing (WIP) 2019-05-21 18:02:31 +10:00
Michael Sproul
468dc2ceb0 per-block processing: minor fixups 2019-05-21 16:43:55 +10:00
Michael Sproul
0b2aa26f2d spec v0.6.1: attestation processing/verif 2019-05-21 16:43:55 +10:00
Michael Sproul
dab11c1eed spec v0.6.1: verify attester slashing 2019-05-20 15:12:24 +10:00
Michael Sproul
58481c7119 spec v0.6.1: verify proposer slashing 2019-05-20 15:12:23 +10:00
Michael Sproul
55537078a1 block processing: v0.6.1 headers, randao, eth1 data 2019-05-20 15:12:23 +10:00
Paul Hauner
03849de319 Fix some BeaconState API changes in state proc. 2019-05-19 15:56:24 +10:00
Michael Sproul
e80264b8c8 Merge remote-tracking branch 'origin/master' into spec-0.6 2019-05-14 12:09:59 +10:00
Michael Sproul
2751be9a05 state_processing: verify_deposit v0.6.0 2019-05-13 17:28:37 +10:00
Michael Sproul
4f138fa3fe state_processing: IndexedAttestation rename 2019-05-13 17:28:04 +10:00
Paul Hauner
ce8ebeccbc Rename BeaconStateTypes to EthSpec 2019-05-10 14:47:09 +10:00
Paul Hauner
77c4b6eafe Add progress on op pool test fixes 2019-05-09 18:56:41 +10:00
Paul Hauner
8cefd20e9d Add progress on state_processing fixed-len update 2019-05-08 15:36:02 +10:00
Paul Hauner
c3779caede Add extra info to block proc. error message 2019-04-17 13:59:40 +10:00
Michael Sproul
d95ae95ce8 spec: update tags to v0.5.1 2019-04-17 12:00:23 +10:00
Michael Sproul
8da8730dca spec: check ProposalSlashing epochs, not slots
As per v0.5.{0,1} of the spec, we only need to check that the epochs of two proposal slashings are
equal, not their slots.
2019-04-17 12:00:21 +10:00
Paul Hauner
b8c4c3308a Update types to new tree_hash crate 2019-04-16 14:14:38 +10:00
Michael Sproul
518359e898 op-pool: implement attester slashings 2019-03-25 16:58:20 +11:00
Michael Sproul
e512f7c0e1 op-pool: validate_attestation_time_independent_only 2019-03-25 11:29:03 +11:00
Michael Sproul
95ed402228 op-pool: rename to verify_*_time_independent_only 2019-03-25 11:29:03 +11:00
Michael Sproul
b2fe14e12c Operation pool: refactor verify_deposit/exit 2019-03-25 11:29:03 +11:00
Michael Sproul
8f4a2fbde1 Implement transaction pool basics 2019-03-25 11:29:03 +11:00
Paul Hauner
84f373fcc2 Fix clippy lints 2019-03-20 10:51:53 +11:00
Paul Hauner
1028acf3f1 Move state trans fns into state_processing 2019-03-18 21:34:42 +11:00
Paul Hauner
191761f356 Allow epoch cache with zero validators. 2019-03-17 23:32:27 +11:00
Paul Hauner
8677b9e9cc Fix bug with epoch caches, add tests 2019-03-17 21:07:19 +11:00
Paul Hauner
3a384d93f8 Allow state processing to compile under v0.5.0 2019-03-17 17:47:12 +11:00
Paul Hauner
3b8c1df5da Fix bug in per block processing. 2019-03-17 12:49:55 +11:00
Paul Hauner
6bd2055a0a Update block processing to v0.5.0 2019-03-17 12:25:37 +11:00
Paul Hauner
6cd3c4bd1a Add a cache for public keys to BeaconState
This allows for a fast lookup of "is this public key already in the
validator registry".
2019-03-13 16:40:28 +11:00
Paul Hauner
e81f1c31c9 Fix proof-of-possession issues.
These were introduced in an earlier commit
2019-03-11 19:47:33 +11:00
Paul Hauner
3f98849362 Optimise attester slashing processing. 2019-03-10 08:55:45 +11:00
Paul Hauner
1ca99b8c4c Optimise deposits processing. 2019-03-10 08:33:17 +11:00
Paul Hauner
6250c81bb9 Fix bug in attestation verification
We were ensuring that a validator was present on the aggregation
bitfield before adding their signature to the agg pub
2019-03-09 20:09:17 +11:00
Paul Hauner
f479beb87e Implement deposit merkle root verification.
It is currently disabled, but it's there for later.
2019-03-08 09:26:03 +11:00
Paul Hauner
1ef2652cac Add transfer processing to BeaconChain 2019-03-07 17:23:11 +11:00
Paul Hauner
15e4aabd8a Add deposit processing, fix clippy lints 2019-03-07 16:15:38 +11:00
Paul Hauner
195cb16a41 Update test_harness for spec v0.4.0 2019-03-07 14:29:21 +11:00
Paul Hauner
17210faf3a Start reorg of per_epoch_processing 2019-03-06 17:14:54 +11:00
Paul Hauner
599948b26b Add comments to block_processing code 2019-03-06 16:24:56 +11:00
Paul Hauner
40f74c9b26 First compiling version of per-block-proc refactor 2019-03-06 15:22:45 +11:00