Commit Graph
19 Commits
Author SHA1 Message Date
Paul Hauner 3a42d7fa6e Disable some blop pool tests during debug 2019-04-02 15:33:18 +11:00
Paul Hauner 3fe7dd80e2 Merge branch 'validator-enhancements' into testnet-client 2019-04-02 14:29:43 +11:00
Michael Sproul ddd9654f70 op-pool: fix bug in attestation_score
The attestation scoring function was looking only at the previous epoch, but
should really look at whichever epoch is appropriate for a given attestation.

We also avoid including attestations that don't pay us any reward, as they
simply bloat the chain.
2019-04-01 13:50:09 +11:00
Paul Hauner c2b6f949c0 Restrict blop pool from re-including attestations 2019-03-30 18:25:32 +11:00
Paul Hauner cd9494181c Push RwLock down into OperationPool
There used to be one massive lock on `BeaconChain.op_pool`, however that
would cause unnecessary blocking.
2019-03-30 12:26:25 +11:00
Paul Hauner 46a978a5a9 Implement op pool for all ops execpt attestations 2019-03-29 18:30:03 +11:00
Michael Sproul e5a3b3dd06 op-pool: attestation tests 2019-03-26 18:29:02 +11:00
Michael Sproul 518359e898 op-pool: implement attester slashings 2019-03-25 16:58:20 +11:00
Michael Sproul 22a90a0224 op-pool: check previous epoch in get_attestations 2019-03-25 11:56:30 +11:00
Michael Sproul e512f7c0e1 op-pool: validate_attestation_time_independent_only 2019-03-25 11:29:03 +11:00
Michael Sproul 3396f2f08e op-pool: propagate errors, sort by transfer fee 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 03c01c8a8d Operation pool: HashMap instead of BTreeMap 2019-03-25 11:29:03 +11:00
Michael Sproul 05dd936a97 Operation pool: deposit pruning tests 2019-03-25 11:29:03 +11:00
Michael Sproul 9c2dfba843 Operation pool: prune attestations 2019-03-25 11:29:03 +11:00
Michael Sproul a8224aa4ec Operation pool: add prune_all 2019-03-25 11:29:03 +11:00
Michael Sproul 1fca8a063c Operation pool: add attestation support 2019-03-25 11:29:03 +11:00
Michael Sproul 8f4a2fbde1 Implement transaction pool basics 2019-03-25 11:29:03 +11:00