Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Altair] Return error when total balance is zero #2366

Merged
merged 1 commit into from
May 25, 2021

Conversation

paulhauner
Copy link
Member

Issue Addressed

NA

Proposed Changes

Returns an (implicit) divide-by-zero error whenever total balances are zero. This is a non-substantive change since this code is unreachable due to total_active_balance always being involved in a std::cmp::max with spec.effective_balance_increment:

// Generate a safe accessor for a balance in `TotalBalances`, as per spec `get_total_balance`.
macro_rules! balance_accessor {
($field_name:ident) => {
pub fn $field_name(&self) -> u64 {
std::cmp::max(self.effective_balance_increment, self.$field_name)
}
};
}

/// Implementation of `get_total_balance`, matching the spec.
///
/// Returns minimum `EFFECTIVE_BALANCE_INCREMENT`, to avoid div by 0.
pub fn get_total_balance(
&self,
validator_indices: &[usize],
spec: &ChainSpec,
) -> Result<u64, Error> {
let total_balance = validator_indices.iter().try_fold(0_u64, |acc, i| {
self.get_effective_balance(*i)
.and_then(|bal| Ok(acc.safe_add(bal)?))
})?;
Ok(std::cmp::max(
total_balance,
spec.effective_balance_increment,
))
}

I can't see any actual issue with the current implementation, however it just seems safer to follow the spec in this scenario. Interested in thoughts.

Additional Info

References:

@paulhauner paulhauner added the work-in-progress PR is a work-in-progress label May 25, 2021
@michaelsproul
Copy link
Member

Seems like a change worth making. I think the if total_balance == 0 { } must be a relic from some ancient version of the spec

@paulhauner paulhauner added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels May 25, 2021
@paulhauner paulhauner requested a review from michaelsproul May 25, 2021 04:21
@paulhauner
Copy link
Member Author

Seems like a change worth making. I think the if total_balance == 0 { } must be a relic from some ancient version of the spec

I agree. It passed CI so it's ready for review!

@michaelsproul michaelsproul marked this pull request as ready for review May 25, 2021 06:25
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect.

@michaelsproul michaelsproul merged commit 338a2d1 into sigp:altair May 25, 2021
pawanjay176 added a commit to pawanjay176/lighthouse that referenced this pull request Jul 16, 2021
Squashed commit of the following:

commit 4bd66ac0aa8676d90ca0b5fe0eaf883ce1fe1e5b
Author: pawan <[email protected]>
Date:   Wed Jul 7 20:10:17 2021 +0530

    Fix bug in peer_manager; Improve logging around subnet discoveries

commit 9d960ba0e36f36bdb14e13d5a8a9cc6b3f53ecf5
Author: pawan <[email protected]>
Date:   Tue Jul 6 17:34:26 2021 +0530

    Fix some gossip scoring severity issue

commit 5b492a7ec6a884ec381402c6a63071187ffd5fa2
Merge: 29e8230b9 ad32be206
Author: pawan <[email protected]>
Date:   Tue Jul 6 17:38:15 2021 +0530

    Merge branch 'sync-committee-pools' into network-altair-gossip

commit 29e8230b934e64592799404c52f12bcc21ffa0b9
Author: pawan <[email protected]>
Date:   Fri Jul 2 16:50:34 2021 +0530

    Pop sync committee tasks from beacon processor

commit ad32be206da64618961476a1d118afe02ab52cff
Author: realbigsean <[email protected]>
Date:   Wed Jun 30 16:28:06 2021 -0400

    alpha.8 updates

commit 838602423fd5e4423c32836fdbb5ddd6484fa88b
Merge: 0ca16620f 95e306991
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 29 18:17:07 2021 +1000

    Merge remote-tracking branch 'origin/altair' into sync-committee-pools

commit 0ca16620f35778452c94bccb59579b45a0519120
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 29 18:05:53 2021 +1000

    Fix clippy again

commit 7481e9c42264526f179dabefce748006a4fe60ab
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 29 15:59:36 2021 +1000

    Fix issues with skip slots at fork boundaries

commit ffd2b75a1033d04263df98bd1aba1b39b083bf6e
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 17 17:50:33 2021 +1000

    Import some relevant funcs from the VC

    Based on "Expand and refactor fork functions"

commit a71eff3baca82c10b1e0f0c6f27eafe147599cb0
Author: pawan <[email protected]>
Date:   Tue Jun 22 23:27:29 2021 +0530

    Split rpc encode/decode into smaller functions

commit 95e306991b6c7b01eda9727abbafbfee5440561c
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 17:15:54 2021 -0400

    Couple more `unstable` merge fixes

commit c878ff55d91952524fefdd18bd54a1dc605d4f3e
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 15:41:40 2021 -0400

    Updates related to merge with `unstable`

commit 0a4c4f517d3948eeab9a541dd34359719aeeac08
Merge: ffba05750 2357a4186
Author: Michael Sproul <[email protected]>
Date:   Wed Jun 23 13:48:06 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair

commit 186125e95e86161f0b5cdef4621c29a1e341ce0d
Author: realbigsean <[email protected]>
Date:   Tue Jun 22 16:10:51 2021 -0400

    fix the expected error in the sync contribution verification test at the sync period boundary

commit 6bbb343542855bbf535807d2265b45c8ff7373b3
Author: pawan <[email protected]>
Date:   Mon Jun 21 23:36:47 2021 +0530

    Remove delay for updating fork

commit 3e7eb81cdd3ab9e912e30742d953c9fdcc4cf70f
Author: pawan <[email protected]>
Date:   Mon Jun 21 23:33:51 2021 +0530

    Handle sync committee gossip errors

commit 8b4582338237d088b048f5f3af6203b79359071e
Author: pawan <[email protected]>
Date:   Sat Jun 19 00:21:20 2021 +0530

    Add v2 protocols for OutboundRequests missed in the merge

commit 73bf044342ea850b8364c9964d2d7b278dd39049
Author: pawan <[email protected]>
Date:   Fri Jun 18 23:02:57 2021 +0530

    Fix subnet service test

commit 5905944c296eb0f3de214b80f027bd9be682e6fa
Author: Michael Sproul <[email protected]>
Date:   Fri Jun 18 13:56:03 2021 +1000

    Simplify compute_subnets_for_sync_committee

commit 51c9a26f12bda40060aa7eca0942e50ce76d2790
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 17 17:50:33 2021 +1000

    Expand and refactor fork functions

commit 1d79fcc34a929cd8e45ab46ca12eed241358d8e0
Author: pawan <[email protected]>
Date:   Fri Jun 18 21:05:28 2021 +0530

    Add sync committee related metrics

commit 3a8e9e64b8535633caddb5af373f33459e1b5565
Author: pawan <[email protected]>
Date:   Fri Jun 18 19:06:53 2021 +0530

    appease clippy

commit 0c10a8f4500c0307214e4a4bf04c43e413247c36
Author: pawan <[email protected]>
Date:   Fri Jun 18 18:48:39 2021 +0530

    Change libp2p dependency for message_id_fn

commit c773da79f9ca95a4972b9dbb7da679eae4110fd4
Merge: ec28bc6c0 88e02277d
Author: pawan <[email protected]>
Date:   Fri Jun 18 17:35:28 2021 +0530

    Merge branch 'network-altair' into network-altair-gossip

commit 88e02277d16107f44ea5782cc374de343b5d0fff
Author: Pawan Dhananjay <[email protected]>
Date:   Tue May 11 10:30:43 2021 +0530

    Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

commit f2b0e3904db9db7f4a3a5897d8b2672fbd743c63
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p

commit f14c5e5340291a8d758afaebd5394e6cc30cc538
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 17:33:21 2021 -0400

    Fix `SyncAggregate` field name

commit f32d14eab73b4a6b2fa2d169a3db475e7fd80302
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 17:15:54 2021 -0400

    Couple more `unstable` merge fixes

commit 24e0d1d7fa85d0ea2d5067e0cc72b62d7f0417d9
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 15:58:17 2021 -0400

    More updates related to `SyncCommitteMessage` refactor

commit f56ea574f966ae1f16524ab62f7ffa4e7aa693c2
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 15:41:40 2021 -0400

    Updates related to merge with `unstable`

commit 5d4cf0b3680ec8e2d6138ddf0d5050a4b13fe255
Merge: 98f7a038c bd7f9d9b3
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 15:30:26 2021 -0400

    Merge branch 'rust-1.53.0-lints' of https://github.com/realbigsean/lighthouse into sync-committee-pools

    � Conflicts:
    �	beacon_node/store/src/hot_cold_store.rs
    �	consensus/state_processing/src/per_slot_processing.rs

commit 98f7a038cb9bb81cf88c8e1a1af5c5bfdbe1f419
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 15:29:16 2021 -0400

    `SyncCommitteSignature` -> `SyncCommitteeMessage`

commit f43e710580baa81d3e783b4dbf3798f1902a253f
Merge: 32276513f ffba05750
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 15:06:35 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

    � Conflicts:
    �	common/lighthouse_metrics/src/lib.rs
    �	testing/ef_tests/check_all_files_accessed.py

commit bd7f9d9b3b8340c397e2b51dac860b4a06ac1233
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 14:55:42 2021 -0400

    cargo fmt

commit 28f668c636b83bbfd28ba04e69131db0368db7b6
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 14:52:18 2021 -0400

    add recursion limit to `simulator` crate

commit 47d4b37e7a797c8c6952d0c675d1a74c81b2c259
Author: realbigsean <[email protected]>
Date:   Thu Jun 17 14:24:24 2021 -0400

    rust 1.53.0 updates

commit ffba0575036402557e35b68e7a98180300ccd2c2
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 17 13:16:33 2021 +1000

    Fix beacon_chain test

commit 8a13d6f7f267888c5e00aab48cc9020bbab696e1
Merge: c962b8826 a526145b4
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 17 10:54:14 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair

commit c962b8826269c199067b8f4a137fa3421bfe7bf8
Merge: bc68a2d4b 17a0431a9
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 17 09:50:08 2021 +1000

    Merge pull request #2405 from sigp/altair-alpha.7

    Update to spec v1.1.0-alpha.7

commit 32276513f5f774c27b56ee460bd1127792fdc517
Author: realbigsean <[email protected]>
Date:   Wed Jun 16 11:17:06 2021 -0400

    fix sync committee verification test macro

commit 5b80cb9197c608277d6315d9e376c32f06ee52ba
Author: realbigsean <[email protected]>
Date:   Wed Jun 16 10:35:20 2021 -0400

    - Make `SyncSubnetId` a required argument for `verify_sync_signature_for_gossip`
    - Drop locks as soon as possible during metrics scrape

commit 04cadec940a8deb4b32b1d938f8adbb7f90b992c
Author: realbigsean <[email protected]>
Date:   Tue Jun 15 19:16:17 2021 -0400

    fix op pool tests

commit 2ee4dc51f36aaae87f597bd0f82cd9e47f6dac94
Author: realbigsean <[email protected]>
Date:   Tue Jun 15 15:42:08 2021 -0400

    Add tests for sync committee verification at slot before sync committee period boundary

commit ec28bc6c0e1f1a2a7e51cf301921a2d21e926608
Author: pawan <[email protected]>
Date:   Tue Jun 15 19:55:11 2021 +0530

    Gossipsub message_id_fn changes

commit 17a0431a9ed0b4a70966a075e37f74504c54ba00
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 15 10:33:51 2021 +1000

    Update mainnet preset YAML

commit bb7e9cf346d141f928fd0b6bc4a5e6ce3303dc29
Author: realbigsean <[email protected]>
Date:   Mon Jun 14 15:41:59 2021 -0400

    Key `observed_contributors` on `SlotSubcommitteeIndex`

commit b624253a1b7f7aa1287cb6127ff1416ebdd152c7
Author: realbigsean <[email protected]>
Date:   Mon Jun 14 14:51:30 2021 -0400

    Refactor how we retrieve `PublicKey` for sync signature verification

commit 41414d10da9d4d4b7546353f9971ec7d15b28c55
Author: realbigsean <[email protected]>
Date:   Fri Jun 11 17:07:57 2021 -0400

    - Fix sync committee verification on slot prior to sync committee period boundary
    - Add `Arc` to `next_sync_committee`
    - Other PR updates

commit 5d07d1e4d6349a231ac92e4cc372a9877b616557
Merge: 409dfbae3 bd27ae25c
Author: pawan <[email protected]>
Date:   Fri Jun 11 17:44:38 2021 +0530

    Merge branch 'network-altair' into network-altair-gossip

commit bd27ae25ce246742f01ef17533b6e4ffc3aaa8d5
Author: Pawan Dhananjay <[email protected]>
Date:   Tue May 11 10:30:43 2021 +0530

    Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

commit f80e578947a412f231d3a926c24561572e26b689
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p

commit 409dfbae369b1a35cf7cddfa23d30e6de74692be
Author: pawan <[email protected]>
Date:   Fri Jun 11 17:27:48 2021 +0530

    Add sync committee subscription test

commit 4fd1517922d03a78bf535dec7bf48f0606548c2d
Author: pawan <[email protected]>
Date:   Fri Jun 11 15:48:39 2021 +0530

    Fix sync committee subscriptions

commit 99bffdb3d639893b93990639e84447ffb15e3a41
Author: Michael Sproul <[email protected]>
Date:   Fri Jun 11 15:59:36 2021 +1000

    Update to spec v1.1.0-alpha.7

commit c0ec45cd6793e20c7f55439420421e7406a4816f
Author: realbigsean <[email protected]>
Date:   Wed Jun 9 21:52:07 2021 -0400

    Fix op pool test

commit 0c445ee80c001a1c5ceee3a8a447cace551feac2
Author: realbigsean <[email protected]>
Date:   Wed Jun 9 14:50:00 2021 -0400

    Op pool migration + superstruct

commit a5fc91730a40beab4a6e96b267b8d73c5a2417eb
Author: pawan <[email protected]>
Date:   Wed Jun 9 16:28:44 2021 +0530

    Address review comments

commit aa192fb1dfdcb56270d636cd69c63ede96a1311a
Author: realbigsean <[email protected]>
Date:   Mon Jun 7 22:08:02 2021 -0400

    Calculate `SyncAggregate` on demand

commit bc68a2d4b4a5ce888f3a44276f03466501610057
Merge: 7d1852126 0a2d57f22
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 8 11:58:37 2021 +1000

    Merge pull request #2373 from michaelsproul/altair-latest-spec

    [Altair] Update to latest spec v1.1.0-alpha.6

commit 0a2d57f2215b8543db6b0683977eb20154b568f8
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 8 11:51:12 2021 +1000

    Minor cleanups

commit e4b7d14da5d978100b28f61a80d49adbf36243ac
Author: realbigsean <[email protected]>
Date:   Mon Jun 7 21:04:36 2021 -0400

    fix op pool tests

commit bf518af3f85ab440535a6bd85163df4213ccbaf2
Author: realbigsean <[email protected]>
Date:   Mon Jun 7 18:42:59 2021 -0400

    PR updates

commit 1e8d01f98fc19f9fd304aa1b00977a0d89fc8b14
Author: pawan <[email protected]>
Date:   Mon Jun 7 16:11:35 2021 +0530

    Add a SyncCommitteeSubscribe network event

commit 8df8c6083d540f80ad6bc5cabd3e6fb1a86ad151
Author: pawan <[email protected]>
Date:   Wed Jun 2 19:24:03 2021 +0530

    Decode altair gossip blocks

commit 064e85845b871cd1d0e19248b8cf1240113525fe
Author: pawan <[email protected]>
Date:   Wed Jun 2 13:14:04 2021 +0530

    Use correct type level constants

commit 27e9235589ebfd0075b6fbd4c9c6dc6be4824674
Author: pawan <[email protected]>
Date:   Tue Jun 1 23:48:53 2021 +0530

    Add worker tasks for sync committee gossip messages

commit 35b8ac93691c2937ff7bc5fd957b320fd37b66fa
Author: pawan <[email protected]>
Date:   Tue Jun 1 23:48:05 2021 +0530

    Use SyncSubnetId for sync committee subnets

commit 77c807384c4124f19b685ab00e22998f53cd0f4f
Merge: b1f6720ac 2bffb5671
Author: pawan <[email protected]>
Date:   Mon Jun 7 13:25:48 2021 +0530

    Merge branch 'network-altair' into network-altair-gossip

commit 2bffb5671e8a06407db5812a552159d63bfe1ccb
Author: Pawan Dhananjay <[email protected]>
Date:   Tue May 11 10:30:43 2021 +0530

    Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

commit 12462d15d2a47edeb32b35163766938e431abcd2
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p

commit bd31c0a367401ce33dee4c916d1217dfe380db8c
Author: realbigsean <[email protected]>
Date:   Thu Jun 3 16:54:00 2021 -0400

    fix `observed_aggregates` tests

commit 6d4327a6961540d0038a8b6a7716a6287384f084
Author: realbigsean <[email protected]>
Date:   Thu Jun 3 16:40:21 2021 -0400

    - Update `NaiveAggregationPool`'s default capacity so it is specific to the type of object being inserted

commit 58a7258f37460f5a831af4f7dac1e40ca65213f2
Author: realbigsean <[email protected]>
Date:   Thu Jun 3 16:00:02 2021 -0400

    - Update `SYNC_COMMITTEE_SUBNET_COUNT` to alpha.6
    - rename the `sync_aggregator_selection_data.rs` file
    - include sync committee ssz static tests in the `check_all_file_accessed.py` checks
    - Update `ObservedAggregates` consts so they are specific to the type of object being cached

commit d756b1dc9c2590e458dd289722088fbcc8dfbdb0
Author: realbigsean <[email protected]>
Date:   Thu Jun 3 08:57:59 2021 -0400

    Revert "update client for `lighthouse/spec` endpoint"

    This reverts commit 7a9b2ac6be8962d398ff604c7c26e6913e10eb4f.

    # Conflicts:
    #	validator_client/src/http_api/tests.rs

commit fa36f344cb484551dffbd0840b1addd4f1819146
Merge: 2238539b1 5a556b3b0
Author: realbigsean <[email protected]>
Date:   Thu Jun 3 08:53:52 2021 -0400

    Merge branch 'altair-latest-spec' of https://github.com/michaelsproul/lighthouse into sync-committee-pools

    � Conflicts:
    �	validator_client/src/http_api/tests.rs

commit b1f6720ac06b19fbc7ec289cad94d8eaae320bcb
Author: pawan <[email protected]>
Date:   Thu Jun 3 16:49:37 2021 +0530

    Fix fork_digest in Status message

commit 5a556b3b0543fd82ab2d47ec7fa1b64de657bf25
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 3 13:37:40 2021 +1000

    Add compatibility shim for /config/spec

commit f532a927a1835876baa2748fb48f09026a02eb8d
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 3 15:43:22 2021 +1000

    Fix Pyrmont & Prater configs. Delete Toledo.

commit c0b20fb48d358e2d799bbf943020ea31af2033d8
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 3 11:59:59 2021 +1000

    Fix clippy

commit 9940cc875c82a1dd15dc9472c568a52bc66e58fa
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 3 11:29:49 2021 +1000

    Check state root in transition tests

commit f08e96fc90df8833ff90decb8a908b86fdb30183
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 3 10:40:48 2021 +1000

    Don't panic if there aren't any aggregators

    Rustfmt also returned with a vengeance to rearrange this block.

commit 897fb7cf6d77d4ff56ecfbdaf84755bf16da4a49
Author: Michael Sproul <[email protected]>
Date:   Thu Jun 3 10:40:05 2021 +1000

    Return ConfigAndPreset from VC API

commit 2238539b127bcaf69e41b957d39096d8f3fab227
Author: realbigsean <[email protected]>
Date:   Wed Jun 2 16:14:06 2021 -0400

    Add back accidentally deleted import

commit 7a9b2ac6be8962d398ff604c7c26e6913e10eb4f
Author: realbigsean <[email protected]>
Date:   Wed Jun 2 14:56:26 2021 -0400

    update client for `lighthouse/spec` endpoint

commit d188557c9c3879c9d06c94a8487abd8da20463d9
Author: realbigsean <[email protected]>
Date:   Wed Jun 2 13:02:54 2021 -0400

    Updates for latest spec merge

commit 06d2ff23fe893c043c8cc6609188fc234079390f
Merge: b602c90e2 ee8dea8e3
Author: realbigsean <[email protected]>
Date:   Wed Jun 2 12:18:21 2021 -0400

    Merge branch 'altair-latest-spec' of https://github.com/michaelsproul/lighthouse into sync-committee-pools

    � Conflicts:
    �	consensus/state_processing/src/genesis.rs
    �	consensus/types/src/beacon_state.rs
    �	consensus/types/src/eth_spec.rs
    �	consensus/types/src/lib.rs

commit b602c90e26eeb334058907b275dec5ae5266e0e8
Author: realbigsean <[email protected]>
Date:   Wed Jun 2 09:02:33 2021 -0400

    Update confusing name `SyncCommitteeSubnetSize` -> `SyncSubcommitteeSize`

commit ee8dea8e34383863d917e65980193328f2132f68
Author: Michael Sproul <[email protected]>
Date:   Wed Jun 2 18:23:21 2021 +1000

    Implement preset <> config distinction

commit cf7e7b741aaf9a0741b03944a0e7a502b61e4acf
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 17:35:58 2021 -0400

    Fix docs

commit bb5d3c8bfd97382665734c9f363c8e0e411a1f03
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 17:33:30 2021 -0400

    Fix docs

commit 3b7b2957f9c85603e99ecb1e6f57db9e9b9687d1
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 17:24:19 2021 -0400

    remove outdated `FIXME`

commit 59a9f3a19986a8814ac943508103ae2a70de1d68
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 17:15:11 2021 -0400

    Remove `is_valid` methods from `SignedAggregateAndProof` and `SignedContributionAndProof`. The logic is duplicated in the signature set verification methods.

commit 16e9f3236effac2be6794b223bf395498b59fa0c
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 17:06:19 2021 -0400

    Fix more docs and metrics

commit d4ec7d07e37801bde9284ef8627868133d062be0
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 15:37:47 2021 -0400

    Fix default capacity for sync committee observed caches

commit b4a71c74caa9ab08429b76696fe5e23ca01f9f63
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 15:37:29 2021 -0400

    Fix default capacity for sync committee observed caches

commit 65c22b76e6915e3ac884bb547376b468dc05e6df
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 15:37:08 2021 -0400

    Fix default capacity for sync committee observed caches

commit dfff140dcb077710525e5e5a8d22af10264371fc
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 14:48:19 2021 -0400

    Updates to some docs, general cleanup

commit 633c1bb0ac7b37127a61e90881721207e38a6925
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 12:29:20 2021 -0400

    fix some pool tests

commit b6fdda0c35511536a40615aacace71a07a99f1ea
Merge: 46b46198e 5756c2d95
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 11:24:54 2021 -0400

    Merge branch 'sync-committee-pools' of https://github.com/realbigsean/lighthouse into sync-committee-pools

commit 46b46198e031a859266a511ac1ad8eacb956925e
Author: realbigsean <[email protected]>
Date:   Tue Jun 1 11:13:27 2021 -0400

    Revert "Remove `Arc` from `current_sync_committee`"

    This reverts commit bf6324ed2c47935ea3d3cd4ae353eb29830a07e6.

commit cb9a7a240b7aa9864662e64de090ca35e0b00020
Author: Michael Sproul <[email protected]>
Date:   Tue Jun 1 09:48:04 2021 +1000

    Ripple spec updates

commit ad3263bf4e334c07b893f81aa7bb6f2259318ceb
Author: pawan <[email protected]>
Date:   Mon May 31 19:17:44 2021 +0530

    Sync committee subnets

commit 2900aa8c06e7eefb9c76cfe1de44fcfec9d72bd4
Author: pawan <[email protected]>
Date:   Mon May 31 13:49:20 2021 +0530

    Address review comments

commit 5756c2d950e0f25b7fc47ed4c8ee5532d365d63c
Author: realbigsean <[email protected]>
Date:   Fri May 28 13:52:51 2021 -0400

    Add metrics and update docs

commit 5692ff158ec3ab74b633cf49e201d58899662237
Author: realbigsean <[email protected]>
Date:   Fri May 28 09:16:38 2021 -0400

    Make the `SyncAggregateId` a fixed-length struct

commit 2a7c2b3cd3874b85639e8b2cf6b90f1ca3f3f197
Author: Michael Sproul <[email protected]>
Date:   Fri May 28 15:54:38 2021 +1000

    Update consensus code to v1.1.0-alpha.6

commit ef73f5acec1f50d743e23afddbe8816160154644
Author: realbigsean <[email protected]>
Date:   Thu May 27 18:15:10 2021 -0400

    Add `max_capacity` to `ObservedAggregates` constructor

commit 276f705bf044511bf148abe556893d57c1969401
Merge: bf6324ed2 7d1852126
Author: realbigsean <[email protected]>
Date:   Thu May 27 12:07:54 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

commit bf6324ed2c47935ea3d3cd4ae353eb29830a07e6
Author: realbigsean <[email protected]>
Date:   Thu May 27 12:04:25 2021 -0400

    Remove `Arc` from `current_sync_committee`

commit 851b624742efe249f6116c0b032054aed9b767d6
Author: realbigsean <[email protected]>
Date:   Thu May 27 11:32:08 2021 -0400

    Delete `verify_sync_contributions.rs` and fix a comment.

commit 3a6f255684cbb14f59f208e1b448af9a93fcd3ad
Author: realbigsean <[email protected]>
Date:   Thu May 27 11:19:18 2021 -0400

    Only advance state as necessary in sync committee verification tests. Fix compile error.

commit b606cc893c6ab784bf910d86df35e1663464d293
Author: realbigsean <[email protected]>
Date:   Wed May 26 15:58:16 2021 -0400

    Add sync contribution aggregation tests to the op pool and fix an op pool bug

commit a4793328e148b9b17aa7a9801267983e6680797b
Author: pawan <[email protected]>
Date:   Tue May 18 19:03:37 2021 +0530

    Minor refactorings

commit 10f1ae8fe213a5c06dc9cd2e31d486eaacc6608c
Author: pawan <[email protected]>
Date:   Mon May 17 19:25:49 2021 +0530

    Fix tests

commit a70f3206058f23946bdc98497d7ebcc17a478425
Author: pawan <[email protected]>
Date:   Sat May 15 01:36:03 2021 +0530

    Simplify required_gossip_digests; improve logging around fork boundary

commit 8641e10c7551b6d58d6082d16f9f10624b66af99
Author: pawan <[email protected]>
Date:   Fri May 14 20:47:02 2021 +0530

    Add sync committee topic tests

commit 75e8c1a995d50bf82ed4afc90dea02e5e6d72edd
Author: pawan <[email protected]>
Date:   Fri May 14 17:19:35 2021 +0530

    Accept peers which haven't updated next_fork_version/epoch

commit 635bde4bf955990ddc3faf44b08c566da155a6c0
Author: pawan <[email protected]>
Date:   Fri May 14 01:35:39 2021 +0530

    Fix next_fork_update in network service; add next_unsubscribe delay

commit 81bb58cfc1f42946cd18037af60bea76896d4fcc
Author: pawan <[email protected]>
Date:   Fri May 14 01:34:54 2021 +0530

    Minor fixes

commit 63c025b83a913d47bfd0ffaa9db72748b9423c52
Author: pawan <[email protected]>
Date:   Fri May 14 01:34:16 2021 +0530

    Fix next_fork methods in chainspec

commit 42abc6e5a9d4faa36be3e4f0fa120885773e187c
Author: pawan <[email protected]>
Date:   Wed May 12 13:35:45 2021 +0530

    Fix metadata encoding; fmt

commit f704717d8313db6d77abf1a867ffa08786da5a6b
Author: pawan <[email protected]>
Date:   Fri Apr 30 19:47:08 2021 +0530

    Add sync committee topics to whitelist

commit 2118661e3fc1983cf34c7d99f2ecd96e522f702a
Author: pawan <[email protected]>
Date:   Fri Apr 30 19:45:55 2021 +0530

    Don't read context bytes for MetaData V2

commit eed9f07765f7cbf1fd05571c46048e116acd3c0d
Author: pawan <[email protected]>
Date:   Fri Apr 30 14:06:21 2021 +0530

    Add MetaData V2

commit 309e49e97207521d31fe4f51ed4d970b9f73099d
Author: pawan <[email protected]>
Date:   Tue Apr 27 17:01:06 2021 +0530

    Fix network service

commit b26bd49a8e167f4d8130997b4fff4cc72e4d7766
Author: pawan <[email protected]>
Date:   Tue Apr 27 17:00:51 2021 +0530

    update_enr_bitfield takes a Subnet instead of SubnetId

commit 18194d7fd3855472da377d768e32533a2062a0c1
Author: pawan <[email protected]>
Date:   Tue Apr 27 01:01:01 2021 +0530

    Add Subnet enum to include SyncCommittee subnet_ids

commit a8f83cd0761ed3253d6107664804efb99bc73f21
Author: pawan <[email protected]>
Date:   Tue Mar 23 19:22:45 2021 +0530

    Start adding sync committee attnets

commit 0431f2514537b0ce1175066c6a816fa32c1b4bab
Author: pawan <[email protected]>
Date:   Wed Apr 21 17:58:52 2021 +0530

    Compiles

commit c1b7812ade53a82dd327937412c796d34e8fd1b1
Author: pawan <[email protected]>
Date:   Tue Apr 6 21:19:53 2021 +0530

    Unsubscribe from pre fork topics

commit 0ad6cddff63c376c640aaaf04232c8ba0a46b76b
Author: pawan <[email protected]>
Date:   Tue Apr 6 20:07:41 2021 +0530

    Subscribe to required gossip topics

commit 6d26ef772a6e74008be70a2544c654764c66f983
Author: pawan <[email protected]>
Date:   Tue Apr 6 13:35:30 2021 +0530

    Add altair gossip types

commit 80f1fa30cd0784cc393dae1b64c495b5b28bb1cc
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p

commit 909529e7cd36a79244c0820794cd37b77288fc6f
Author: Pawan Dhananjay <[email protected]>
Date:   Tue May 11 10:30:43 2021 +0530

    Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

commit b112673c430c6b7449df3defee8188d0f4d5c3c3
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p

commit 7d1852126a0d526aee852208f2f93201f6c4c616
Author: Paul Hauner <[email protected]>
Date:   Wed May 26 16:02:49 2021 +1000

    [Altair] Optimization for `get_unslashed_participating_indices` (#2369)

    * Lift calculation of unslashed indices

    * Use HashSet for unslashed participating indices

    * Make Operation Pool Compile Again (MOPCA)

commit dc2227a79fe70920b85810f75fa2689abf679ab0
Author: Paul Hauner <[email protected]>
Date:   Wed May 26 09:55:10 2021 +1000

    Minor changes to justification code (#2367)

commit 7cac63db20cc668cc6a61c78b733d6a8f5384af9
Author: realbigsean <[email protected]>
Date:   Tue May 25 17:08:31 2021 -0400

    update op pool tests to correctly use `get_sync_aggregate`

commit e9bec20a2194d7691be2eabd9f0c804bf913dfd1
Author: Michael Sproul <[email protected]>
Date:   Tue May 25 17:04:20 2021 +1000

    Fix get_sync_aggregate

commit 3789a72f3f26be89018fdc0f9954c21692e26a13
Author: Michael Sproul <[email protected]>
Date:   Tue May 25 12:57:03 2021 +1000

    Fix and test selection proof `verify`

commit 338a2d18ad2858816f0b189d55926704a1906522
Author: Paul Hauner <[email protected]>
Date:   Tue May 25 16:32:32 2021 +1000

    Return an error if total bal is 0 (#2366)

commit 49b79b8c65183b13de4ba953ad90fff023e75127
Author: Michael Sproul <[email protected]>
Date:   Tue May 25 16:24:25 2021 +1000

    Update comment

commit 6415962290a54c00289cb526aefc5a304e9e94e4
Author: Michael Sproul <[email protected]>
Date:   Tue May 25 15:56:21 2021 +1000

    Address review comments

commit 443793bcada3b90d48b3171e0cf028f79f9294ce
Author: Michael Sproul <[email protected]>
Date:   Tue May 25 10:46:42 2021 +1000

    Restore lost CI YAML

commit e324310a8ae71547234ada6c3f26ee6d5093ff9f
Merge: 97d1807ed dba9dcad5
Author: Michael Sproul <[email protected]>
Date:   Tue May 25 10:40:42 2021 +1000

    Merge pull request #2365 from paulhauner/altair-merge-unstable

    [Altair] Merge unstable

commit dba9dcad5d5bf5b9ec12b04f2a0b0929645866c0
Merge: 97d1807ed 5d9a1bc55
Author: Paul Hauner <[email protected]>
Date:   Tue May 25 09:51:57 2021 +1000

    Merge branch 'unstable' of github.com:sigp/lighthouse into altair-merge-unstable

commit 9739552b18ddbd3af9037acd3f90941816409ed4
Author: realbigsean <[email protected]>
Date:   Mon May 24 19:50:06 2021 -0400

    fix a typo in a const, and a bunch of lints

commit 3db55764473213c0c63b4754e8afc2c0f86239a6
Author: realbigsean <[email protected]>
Date:   Mon May 24 19:21:00 2021 -0400

    Accidentally removed a couple constants while merging

commit a217a85aef376a497002ffc1a3aa1fde4cd7dabd
Merge: 81bd93f41 97d1807ed
Author: realbigsean <[email protected]>
Date:   Mon May 24 18:04:14 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

    � Conflicts:
    �	beacon_node/operation_pool/src/lib.rs
    �	consensus/state_processing/src/per_block_processing/signature_sets.rs
    �	consensus/state_processing/src/per_epoch_processing/tests.rs
    �	consensus/types/src/consts.rs

commit 81bd93f41727418143504fabba4859b03249ab63
Author: realbigsean <[email protected]>
Date:   Mon May 24 17:40:22 2021 -0400

    Fix beacon chain harness bug in `make_sync_contributions`. Key the `ObservedSyncAggregators` pool on slot + subcommittee index

commit 97d1807ed12565debb0a00774e2928089b0928f0
Author: Paul Hauner <[email protected]>
Date:   Mon May 24 20:34:18 2021 +1000

    [Altair] Add check for missed EF tests (#2346)

    * Rewards tests (base-only so far)

    * Altair rewards tests, clean-ups

    * Bump Rust version in Dockerfile

    * Add file access logging

    * Tidy

    * Fix clippy lint

    * Fix typo

    * Tidy, remove commented-out test exceptions

    * Improve naming in python script

    Co-authored-by: Michael Sproul <[email protected]>

commit 06c46f458476940ce97e3c7ff5d5ea8f92073b78
Author: Paul Hauner <[email protected]>
Date:   Mon May 24 20:30:16 2021 +1000

    [Altair] Applying Base block to Altair chain (#2353)

    * Add hack to allow harness with altair spec

    * Add test for applying base block to altair chain

    * Add fork_name methods

    * Add fork checks and tests

    * Add tests for applying altair to base

    * Allow providing a custom spec to test harness

    * Fix compile error in network

    * Add tests for slot, epoch processing

    * Fix clippy lints

    * Fix release test

    * Fix test compile error

    * Fix test with inconsistent spec

    * Use fork_name_at_slot in genesis

commit 5cb02115a33daff4ef1e2ecd5c8445aa5219be06
Author: Paul Hauner <[email protected]>
Date:   Mon May 24 12:48:53 2021 +1000

    [Altair] Remove duplicate vars, panic on `u64::pow` overflow (#2350)

commit 76d31cd616b51fcc7a322c036bfa29227b682fc3
Author: Michael Sproul <[email protected]>
Date:   Mon May 24 11:59:30 2021 +1000

    [Altair] Rewards tests (#2349)

    * Rewards tests (base-only so far)

    * Altair rewards tests, clean-ups

    * Bump Rust version in Dockerfile

commit 17a2fe765c0970e961ebd2bf3cc37047dd2a28f4
Author: realbigsean <[email protected]>
Date:   Fri May 21 16:23:26 2021 -0400

    small updates

commit 27f671bc92f8445d1ec6096c3ce89831ca16c28f
Author: realbigsean <[email protected]>
Date:   Fri May 21 11:14:01 2021 -0400

    Use macros for naive aggregation pool tests.

commit e46448b60632ebff3457b09808e7e82b04b361dd
Merge: 729fe5017 6f6eebf3c
Author: realbigsean <[email protected]>
Date:   Fri May 21 09:02:03 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

commit 6f6eebf3c77cff99a449dc011af538aa483774a9
Author: Paul Hauner <[email protected]>
Date:   Fri May 21 17:22:01 2021 +1000

    [Altair] Make anonymous var-length SSZ decoding explicit (#2362)

    * Add explicit function for anon var length items

    * Remove unused import

    * Update comment

commit 83775656c1c082a45e881a6ac1da3d63899598f8
Author: Paul Hauner <[email protected]>
Date:   Fri May 21 15:23:46 2021 +1000

    Avoid slicing in PartialBeaconState (#2361)

commit 729fe5017844ee49db40fea3e39462842ac1e128
Author: realbigsean <[email protected]>
Date:   Thu May 20 15:14:20 2021 -0400

    Finish op pool sync committee logic, add a couple tests.

commit 8778b4395cfba512c9cb2e8183d4352a5a1a29ba
Merge: 368543abc c661d54b8
Author: realbigsean <[email protected]>
Date:   Thu May 20 13:11:06 2021 -0400

    Merge branch 'altair-base-test' of https://github.com/paulhauner/lighthouse into sync-committee-pools

    � Conflicts:
    �	consensus/state_processing/src/per_block_processing/signature_sets.rs

commit c661d54b8ce0b1990c9233048dff39cb25ae6627
Author: Paul Hauner <[email protected]>
Date:   Thu May 20 18:45:14 2021 +1000

    Fix release test

commit a1feba1bfdd5c51010209922c9776393a02505d3
Author: Paul Hauner <[email protected]>
Date:   Thu May 20 18:38:00 2021 +1000

    Fix clippy lints

commit 3a4cca051b8bc5436a4a123903908c83b8526662
Author: Paul Hauner <[email protected]>
Date:   Thu May 20 18:28:41 2021 +1000

    Add tests for slot, epoch processing

commit dfb4c4ecb82c7673b905fa32cb4a898ddffb4b1d
Author: Paul Hauner <[email protected]>
Date:   Thu May 20 18:28:28 2021 +1000

    Fix compile error in network

commit be88e5d86956d520e5c53f72faabd267cafadad9
Author: Paul Hauner <[email protected]>
Date:   Thu May 20 18:28:10 2021 +1000

    Allow providing a custom spec to test harness

commit 368543abc1398305d3aae7dfa45c9847ba2fa811
Merge: e9820d824 6c16333e7
Author: realbigsean <[email protected]>
Date:   Wed May 19 07:51:35 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

commit 7ca7af8931dfe1ee8e2e3dce56d5a81b9d71f81c
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 19:20:33 2021 +1000

    Add tests for applying altair to base

commit f7576173c4402294f62e301eaeca452a2a5ba88e
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 15:57:12 2021 +1000

    Add fork checks and tests

commit 297843db444f6f34b479badeb5b26a24d7793abe
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 15:47:25 2021 +1000

    Add fork_name methods

commit 6c16333e7db68b01494271bbd453318584a639df
Author: Michael Sproul <[email protected]>
Date:   Wed May 19 15:33:53 2021 +1000

    Apply comment fixes from Paul

    Co-authored-by: Paul Hauner <[email protected]>

commit 28aa86963445116ab7c1a3336f0b7e263b32618e
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 14:38:58 2021 +1000

    Replace a test deleted during Altair update (#2351)

commit 70a2fc08203531578460729fd4766e8ce5b634c9
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 14:23:54 2021 +1000

    Use graffiti len more consistently (#2348)

commit 4500cb902cfe891a0f4403339aa9888b502b87af
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 12:04:11 2021 +1000

    Add test for applying base block to altair chain

commit ab3cfc057f1d166576304e0991f7943601e91f1b
Author: Paul Hauner <[email protected]>
Date:   Wed May 19 12:03:50 2021 +1000

    Add hack to allow harness with altair spec

commit e9820d82443b9d9bc03a78ce174bba93298409aa
Author: realbigsean <[email protected]>
Date:   Tue May 18 18:50:12 2021 -0400

    Some sync verification fixes and test progress

commit 0b07c941fdbb00b7906278e19e70f67ec923b6af
Author: realbigsean <[email protected]>
Date:   Mon May 17 09:02:59 2021 -0400

    merge with `altair`

commit e7268f70e41ee550764181b29e56e469d3f5ce50
Merge: 3c12cd66f a6acfbb79
Author: realbigsean <[email protected]>
Date:   Mon May 17 08:46:21 2021 -0400

    merge with `altair`

commit a6acfbb790fd1595305b741e13cb25e0a40cc2a9
Merge: 67056607c 2daedc805
Author: realbigsean <[email protected]>
Date:   Mon May 17 08:40:31 2021 -0400

    Merge pull request #13 from michaelsproul/sync-committee-pools

    Sync committee pools

commit 2daedc805004673c8647d86678d8e8ce23b834b8
Author: Michael Sproul <[email protected]>
Date:   Mon May 17 20:44:36 2021 +1000

    More sync committee type cleanups/fallout

commit 14002e942e9c00cf931b5deebd75d73aa71f2ea0
Merge: ff0d992e1 967d680a9
Author: Michael Sproul <[email protected]>
Date:   Mon May 17 20:13:13 2021 +1000

    Merge remote-tracking branch 'origin/altair' into sync-committee-pools

commit ff0d992e1a24e7a16e12f81ed44b007cd8b388e4
Author: Michael Sproul <[email protected]>
Date:   Mon May 17 16:57:51 2021 +1000

    Tidy SyncCommittee types

commit 967d680a9801bcb83676f8cdb6825b23580148cc
Author: Paul Hauner <[email protected]>
Date:   Fri May 14 10:28:44 2021 +1000

    Add tests for decoding state/block with bad slot (#2341)

commit 6d015304e5a533a12f38ddb5041f83895e2a7754
Merge: 1a9c89944 58e52f8f4
Author: Michael Sproul <[email protected]>
Date:   Thu May 13 15:18:38 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair

commit 3c12cd66f598b00cf067bbab48060f0df5617a15
Author: realbigsean <[email protected]>
Date:   Tue May 11 13:39:57 2021 -0400

    merge with `altair`

commit abf974ca850519ed56790f978fa19ab080304a1a
Merge: 67056607c 1a9c89944
Author: realbigsean <[email protected]>
Date:   Tue May 11 12:15:05 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

    � Conflicts:
    �	consensus/types/src/beacon_state.rs
    �	consensus/types/src/beacon_state/sync_committee_cache.rs
    �	consensus/types/src/beacon_state/tests.rs

commit 67056607cc2ee8b72ab6eef975f3931126ba0c13
Author: realbigsean <[email protected]>
Date:   Tue May 11 12:11:16 2021 -0400

    - Add beacon harness methods for sync signature create
    - separate sync signature `SubnetId` and `SelecitonProof` types from attestations
    - update op pool persistence to include sync aggregates

commit 1a9c89944dd06b7976a5e10bc4c8697877cea713
Author: Michael Sproul <[email protected]>
Date:   Tue May 11 13:15:39 2021 +1000

    Remove sync committee indices cache

    We could add back a cache at some point, but it would likely look
    completely different due to having to compute the indices "backwards"
    from the public keys. Dealing with all the cases involving rebuilding
    the cache efficiently, or what to do if it isn't built will be quite
    involved so I think it's better we wait to see if we need it before
    optimising prematurely.

commit f7b82ae3b9605953ae44c80485fd1ec2b4088192
Author: Paul Hauner <[email protected]>
Date:   Mon May 10 12:14:56 2021 +1000

    Provide clarity about BeaconState leaf count (#2339)

commit f93c25689ff263d37544cd285729055622bfcfdd
Author: realbigsean <[email protected]>
Date:   Fri May 7 17:56:25 2021 -0400

    Some op pool work

commit dfcf16ef87dedf379f75084ff50ee78ef8599d9b
Author: realbigsean <[email protected]>
Date:   Fri May 7 10:31:53 2021 -0400

    Add tests for new observation pools

commit 8210af59b2c8f9dd02cc7546f58e258dafce12d3
Author: realbigsean <[email protected]>
Date:   Thu May 6 21:48:43 2021 -0400

    Fmt and fix some lints

commit 6c0e4c45c9d44ce5c543449ec5a325f97081f603
Author: realbigsean <[email protected]>
Date:   Thu May 6 21:30:12 2021 -0400

    Move `sync_committee_base_epoch` to `Epoch`

commit bfc338381f4b4bffa4b7997f02a66b04c538117c
Merge: 0d84cb6b1 c89de3ba6
Author: realbigsean <[email protected]>
Date:   Thu May 6 17:11:24 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

commit 0d84cb6b15d25c208608545279c06904720c9659
Author: realbigsean <[email protected]>
Date:   Thu May 6 17:10:40 2021 -0400

    Clean up imports

commit d956db51e2203d420d0285ad4573fd358b06d64e
Author: realbigsean <[email protected]>
Date:   Thu May 6 17:05:25 2021 -0400

    Add an `Arc` to the `current_sync_committee` field, refactor `sync_committee_verification` code

commit bc719f75d85d1a20b9cb3c127c7be3f8309c17cd
Author: realbigsean <[email protected]>
Date:   Wed May 5 17:04:31 2021 -0400

    Sync committee signature verification work

commit c89de3ba6d9f232aa51c51f62ce81aef044583f4
Author: Michael Sproul <[email protected]>
Date:   Fri Apr 30 17:28:19 2021 +1000

    Maintain backwards compatibility with std config

commit a549472d6373003dc3707e51c5b7ed0267252571
Merge: 0cf1834dd 0aa850952
Author: Michael Sproul <[email protected]>
Date:   Fri Apr 30 09:40:47 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair

commit 0cf1834ddee58bd9cf6d28c486a0e9c4c7a60d0c
Author: Michael Sproul <[email protected]>
Date:   Thu Apr 29 14:16:14 2021 +1000

    Fix clippy

commit 95ca4ed8f3aea123b44f8cb7cf8deb336bb12766
Author: Michael Sproul <[email protected]>
Date:   Thu Apr 29 12:19:27 2021 +1000

    Abstract over fork in beacon_chain tests

    Also consolidate persistence_tests into store tests to
    reduce the # of integration test binaries slightly.

commit d32cc3d37d827b61b28604070d87fdd67d590143
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 28 10:43:09 2021 +1000

    Fix cargo-fmt --all

commit d1d3cbae9517cff096ef6fc2ef3741eec4170721
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 28 10:39:47 2021 +1000

    Try splitting beacon_chain tests out of CI

commit d0f63e08110cc9cb64d6655c158bdd8e3f251ad8
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 17:57:50 2021 +1000

    Use published superstruct

commit a1d9182ba704a8684e3a983e58244d007d865478
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 17:53:21 2021 +1000

    Fix double update in github cargo fmt

commit fa3f6f73509a854bfa9e62940b793a942a131fa2
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 17:13:24 2021 +1000

    Fix the RPC tests without hacks

    Thanks @pawanjay176

commit eea1708eb171433011a009d70c0fe119a1d5ffff
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 16:59:54 2021 +1000

    Appease udeps

commit e4b2570c9b99c7b9ef4d1d1f28c3cda7a639f6eb
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 16:14:11 2021 +1000

    Disable aggressive lints in tests

commit 5176655209f04b92d12870558bc36e422bf1715a
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 15:36:09 2021 +1000

    Delete tree hash and state proc benchmarks

commit 9882bbbf4ed16e84c61563b34172ed0641e4b286
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 27 15:14:38 2021 +1000

    Disable indexing in types & state processing

commit 0428acf2572ea88fc98c54faf66d736e72ca0f20
Author: realbigsean <[email protected]>
Date:   Mon Apr 26 10:00:46 2021 -0400

    add BitVector intersection and union tests

commit c85e4642b077e9194f771f53d5f3e41a7223fb2a
Merge: 2bb1021fc 0ded5cb50
Author: realbigsean <[email protected]>
Date:   Mon Apr 26 08:46:13 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

commit 0ded5cb50d996764777ec46ef754a36e6c8a4949
Author: Michael Sproul <[email protected]>
Date:   Fri Apr 23 17:56:25 2021 +1000

    Participation bits fixes, clippy fixes

commit 14a15ca43ebee8fd4be74be51aa012b668d4fa97
Author: Michael Sproul <[email protected]>
Date:   Fri Apr 23 16:50:27 2021 +1000

    Fix arbitrary instances

commit e92e61b848a56229155b18e9b4ba690decd999e9
Author: Michael Sproul <[email protected]>
Date:   Fri Apr 23 16:49:30 2021 +1000

    Nuke old store benchmark

commit f8b31f6133649084ffd154397b7ac53e55faffd6
Author: Michael Sproul <[email protected]>
Date:   Fri Apr 23 15:09:30 2021 +1000

    More test updates, release-tests might pass now...

commit 2bb1021fc1843cfe9ab99fc1874eba6c8e439e88
Author: realbigsean <[email protected]>
Date:   Thu Apr 22 18:56:37 2021 -0400

    update docs and add tests for sync committee operation pool

commit 473a5a941cfc60645a346b922b726de35be8d656
Author: realbigsean <[email protected]>
Date:   Thu Apr 22 15:14:35 2021 -0400

    Fix `SyncCommitteeContribution` bit vector length, fix `SyncCommitteeSignature` field name

commit 92d3c33041402a3d52111d13d662de0bc4529374
Author: Michael Sproul <[email protected]>
Date:   Thu Apr 22 13:05:13 2021 +1000

    Update lcli and local testnet scripts

commit 7395bf082ff78b316d2bd4f0ded19b48d93d1988
Author: realbigsean <[email protected]>
Date:   Wed Apr 21 17:45:45 2021 -0400

    Revert BitVector change

commit 54ae49b7a74d7ba6417036830f5bbf84d589f671
Author: realbigsean <[email protected]>
Date:   Wed Apr 21 17:14:42 2021 -0400

    Sync committee pool refactors, attempt to get ssz tests working

commit 8158ef32eb8c6cda6dd4a713542761703128f620
Merge: 5316b2a26 98e26d53b
Author: realbigsean <[email protected]>
Date:   Wed Apr 21 09:40:41 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into sync-committee-pools

commit 98e26d53b52cea642f6eec64d059cf9eb1e3d5ac
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 21 15:38:50 2021 +1000

    Add fork upgrade test, fix EF spec test

commit 5316b2a26a43036574541d49176f22bff7eda58e
Author: realbigsean <[email protected]>
Date:   Tue Apr 20 17:34:48 2021 -0400

    Begin adding pools related to sync committees

commit af9e2d87c208d5ae64c46b3dd8fea7a6056963fc
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 20 18:04:08 2021 +1000

    More test fixes

commit e490f3c563a39957867a9647f444e6ede5a73e3a
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 20 18:03:46 2021 +1000

    Use `upgrade_to_altair` in state transition

commit 610e92b8d5068d658892d3752ca61144128f6cfc
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 20 15:46:38 2021 +1000

    More test cleanups and fixes

commit 27f41c6e23ca598c7cb7d9ba1a93d78ab613de36
Author: realbigsean <[email protected]>
Date:   Tue Apr 20 01:47:29 2021 -0400

    Lots of test refactors (#2315)

    * Fix beacon chain tests non-altair

    * fix op pool tests

    * fix merge

    * get block processing tests working

    * Refactor state transition vector tests, half are passing

    * cargo fmt

    * PR updates

    * Skip ahead to epoch 256 on beacon harness tests. Fix op pool tests.

    * clippy updates

commit 663a9effc57ded54c1b6249ddc7eb3c79036156d
Author: Michael Sproul <[email protected]>
Date:   Mon Apr 19 17:42:35 2021 +1000

    Use superstruct partial getters

    This makes our Altair consensus logic compatible with future forks.

commit bfc70cfe5e76a2c934fc84bad481f4c9f7100765
Author: Michael Sproul <[email protected]>
Date:   Mon Apr 19 16:36:27 2021 +1000

    Remove global fork schedule (#2314)

    * Remove global fork schedule
    * Fix remaining EF tests for refactor
    * Get top-level compiling again
    * Bubble YAML config changes

commit d6f2acc8cce7809f81c1df70622e09d56577bea7
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 14 17:12:20 2021 +1000

    Tidy phase0 op pool

commit 1a4145de3500a6cef307a2cec129f4606296f3fc
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 14 16:48:34 2021 +1000

    Fix bounds check on compute_sync_committee_indices

commit 0cdd19c0b40c2043086390b13b0e899386c75966
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 14 16:12:44 2021 +1000

    Update block proposal & op pool

commit a256b06e7885538d2a42c408fc00f09629c075a2
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 13 22:01:06 2021 +1000

    Temporarily hardcode base fork in op pool

commit ace7c45f83a37762cec7ce4c54583c0ea73ef39b
Merge: 458828f0e 3b901dc5e
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 13 20:51:54 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair

commit 458828f0e0c9911bb3640da55cd5b413bdf0f796
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 13 20:39:29 2021 +1000

    Tidy block tree hash

commit e873ad9a8783ff009bfb2e5a1351c0bb1fcddafe
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 13 15:43:34 2021 +1000

    Reset Cargo.lock to "stable" style

commit 254bd6612b746ef1f95f86b97662307c13ad943e
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 13 15:23:55 2021 +1000

    Use RefMut

commit d5f19dc07abccb784ec38c524a86d60bca1dd31d
Author: realbigsean <[email protected]>
Date:   Tue Apr 13 00:45:20 2021 -0400

    Fix beacon chain tests non-altair (#2305)

commit 8ffeb335eb80dcd243fd6e0ef38f17c20525f1d5
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 7 16:57:24 2021 +1000

    Fix remaining EF tests/handlers!

commit 9ac68508721cfc65fd33d84e0b4bd50226369fe0
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 7 12:25:25 2021 +1000

    Update to v1.1.0-alpha.3

commit 4cffdcbaf22a13125d9785965b19df7dba2d7554
Author: Michael Sproul <[email protected]>
Date:   Wed Apr 7 10:15:57 2021 +1000

    Fix typo in sync_committee_updates

commit 97106d4006f5bb321c1d98b0cca0957f24ead529
Author: realbigsean <[email protected]>
Date:   Tue Apr 6 16:36:59 2021 -0400

    delete unused imports

commit 5c63dcd32ae8b93b9c077effdc5d58a7d615c0b4
Author: realbigsean <[email protected]>
Date:   Tue Apr 6 16:33:57 2021 -0400

    refactor common epoch processing methods

commit 84c04414862b83b78c46512509863443949bcff1
Author: realbigsean <[email protected]>
Date:   Tue Apr 6 15:56:10 2021 -0400

    fix slashings and implement sync committee processing

commit 1815024f64786d364d13b20d2000a51b9376ef1b
Merge: b9f32e0d3 f68738ee4
Author: realbigsean <[email protected]>
Date:   Tue Apr 6 08:33:07 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into more-altair-epoch-processing

    � Conflicts:
    �	consensus/state_processing/src/per_epoch_processing/altair/rewards_and_penalties.rs

commit f68738ee4874f14f69b5d02cc2b7417feef651e5
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 6 17:23:40 2021 +1000

    Implement `upgrade_to_altair`, genesis init test

commit 3a364d9a51ed7dbd59bd690bc6d9c12c2952f666
Author: Michael Sproul <[email protected]>
Date:   Tue Apr 6 14:08:09 2021 +1000

    Update attestation/deposit processing

commit b9f32e0d38675dab82e21d6e2db8e7852e563b5c
Author: realbigsean <[email protected]>
Date:   Mon Apr 5 20:35:31 2021 -0400

    small refactors

commit 3b00f83abde797d35525322aa7591b7a0e0158a5
Author: Michael Sproul <[email protected]>
Date:   Thu Apr 1 12:40:46 2021 +1100

    Update EF operation tests incl sync agg

commit 746e99beb310a9f724d12437e84808bcc1b06d83
Author: Michael Sproul <[email protected]>
Date:   Wed Mar 31 17:45:53 2021 +1100

    Implement process_sync_committee

commit e470fd4643fde30254cdc970b728520bff043e14
Merge: d5cf7a84b 060e3d47c
Author: Michael Sproul <[email protected]>
Date:   Wed Mar 31 11:32:49 2021 +1100

    Merge remote-tracking branch 'sean/altair-process-epoch' into altair

commit d5cf7a84b14abca9f8f1a21b2d3820e1647e0b76
Author: Michael Sproul <[email protected]>
Date:   Wed Mar 31 11:28:50 2021 +1100

    Implement basic sync committee functions

commit 060e3d47cc30ec0f2d104d4192fb9649dd93eac3
Author: realbigsean <[email protected]>
Date:   Sun Mar 28 09:38:18 2021 -0400

    fix some imports

commit 9ab858ac4b8d995b8b110343047b77dd1464d803
Author: realbigsean <[email protected]>
Date:   Sat Mar 27 20:10:23 2021 -0400

    get rewards and penalties working for altair

commit 4895348798395dd2e5e015a1ea6670a1356309ff
Author: realbigsean <[email protected]>
Date:   Sat Mar 27 10:36:01 2021 -0400

    refactor justification and finalization, begin altair rewards and penalties

commit a0fa7afd236cd46726891121ff99b4cff2c213ae
Merge: 5090cf4ee 1449230a0
Author: realbigsean <[email protected]>
Date:   Fri Mar 26 08:13:49 2021 -0400

    Merge branch 'altair' of https://github.com/sigp/lighthouse into altair-process-epoch

commit 5090cf4ee260a71910ce3c1a827534a4b10a400d
Author: realbigsean <[email protected]>
Date:   Fri Mar 26 08:13:41 2021 -0400

    refactors

commit 1449230a018a62710ac26f7e9e655adfe92aff8f
Author: Michael Sproul <[email protected]>
Date:   Fri Mar 26 17:43:49 2021 +1100

    Fix ef_tests for SBB change

commit 3283abc1933b96df19b2fdf9307196265c6ee5b0
Merge: 20181b707 d3d8c22ed
Author: Michael Sproul <[email protected]>
Date:   Fri Mar 26 17:43:39 2021 +1100

    Merge remote-tracking branch 'origin/unstable' into altair

commit 20181b70779bd570f70d420553b0b6b7bc6bf7ac
Author: Michael Sproul <[email protected]>
Date:   Fri Mar 26 17:32:10 2021 +1100

    Make SignedBeaconBlock a superstruct

commit 6585c9d57bfa6529d5906540688a0f20ad10d8d7
Merge: ca6bbf935 a5c899005
Author: realbigsean <[email protected]>
Date:   Thu Mar 25 11:51:47 2021 -0400

    Merge branch 'consensus-spec-tests' of https://github.com/realbigsean/lighthouse into altair-process-epoch

    � Conflicts:
    �	consensus/state_processing/src/per_epoch_processing/base.rs

commit a5c899005e11a8f738116a04d890d6c72c585ddb
Author: realbigsean <[email protected]>
Date:   Thu Mar 25 11:50:28 2021 -0400

    refactor to match eth2  spec, and fix epoch processing EF tests

commit ca6bbf93594e2adad846793ce1c09c8092a4ca69
Author: realbigsean <[email protected]>
Date:   Thu Mar 25 10:00:10 2021 -0400

    justification_and_finalization changes

commit a4d3e708a8276278f4e137e3ac0912d6d82d7e73
Author: Michael Sproul <[email protected]>
Date:   Thu Mar 25 16:26:04 2021 +1100

    Most SSZ static tests passing

commit b199b252f76487501f516ea3aa9ece05a870c7d8
Author: Michael Sproul <[email protected]>
Date:   Thu Mar 25 11:05:40 2021 +1100

    Generate as_base/as_altair with superstruct

commit 937a19a285a3df605f39a7f06232ce4a0e8631cb
Author: Michael Sproul <[email protected]>
Date:   Wed Mar 24 18:07:44 2021 +1100

    Towards SSZ tests passing

    SignedBeaconBlock failing due to INT_MAX slot issue
    TreeHashing for BeaconState failing
    Cached tree hashing for BeaconState currently disabled

commit bb397c542b144e4e119e0c81cb6c14cb27087dd6
Author: Michael Sproul <[email protected]>
Date:   Tue Mar 23 17:28:55 2021 +1100

    Add AltairConfig

commit 2c527940f262634f6b31db25643c5d80382fc878
Author: Michael Sproul <[email protected]>
Date:   Tue Mar 23 12:27:35 2021 +1100

    Start Altair refactor
pawanjay176 added a commit that referenced this pull request Jul 16, 2021
* small refactors

* Update attestation/deposit processing

* Implement `upgrade_to_altair`, genesis init test

* fix slashings and implement sync committee processing

* refactor common epoch processing methods

* delete unused imports

* Fix typo in sync_committee_updates

* Update to v1.1.0-alpha.3

* Fix remaining EF tests/handlers!

* Fix beacon chain tests non-altair (#2305)

* Use RefMut

* Reset Cargo.lock to "stable" style

* Tidy block tree hash

* Temporarily hardcode base fork in op pool

* Update block proposal & op pool

* Fix bounds check on compute_sync_committee_indices

* Tidy phase0 op pool

* Remove global fork schedule (#2314)

* Remove global fork schedule
* Fix remaining EF tests for refactor
* Get top-level compiling again
* Bubble YAML config changes

* Use superstruct partial getters

This makes our Altair consensus logic compatible with future forks.

* Lots of test refactors (#2315)

* Fix beacon chain tests non-altair

* fix op pool tests

* fix merge

* get block processing tests working

* Refactor state transition vector tests, half are passing

* cargo fmt

* PR updates

* Skip ahead to epoch 256 on beacon harness tests. Fix op pool tests.

* clippy updates

* More test cleanups and fixes

* Use `upgrade_to_altair` in state transition

* More test fixes

* Begin adding pools related to sync committees

* Add fork upgrade test, fix EF spec test

* Sync committee pool refactors, attempt to get ssz tests working

* Revert BitVector change

* Update lcli and local testnet scripts

* Fix `SyncCommitteeContribution` bit vector length, fix `SyncCommitteeSignature` field name

* update docs and add tests for sync committee operation pool

* More test updates, release-tests might pass now...

* Nuke old store benchmark

* Fix arbitrary instances

* Participation bits fixes, clippy fixes

* add BitVector intersection and union tests

* Disable indexing in types & state processing

* Delete tree hash and state proc benchmarks

* Disable aggressive lints in tests

* Appease udeps

* Fix the RPC tests without hacks

Thanks @pawanjay176

* Fix double update in github cargo fmt

* Use published superstruct

* Try splitting beacon_chain tests out of CI

* Fix cargo-fmt --all

* Abstract over fork in beacon_chain tests

Also consolidate persistence_tests into store tests to
reduce the # of integration test binaries slightly.

* Fix clippy

* Maintain backwards compatibility with std config

* Sync committee signature verification work

* Add an `Arc` to the `current_sync_committee` field, refactor `sync_committee_verification` code

* Clean up imports

* Move `sync_committee_base_epoch` to `Epoch`

* Fmt and fix some lints

* Add tests for new observation pools

* Some op pool work

* Provide clarity about BeaconState leaf count (#2339)

* Remove sync committee indices cache

We could add back a cache at some point, but it would likely look
completely different due to having to compute the indices "backwards"
from the public keys. Dealing with all the cases involving rebuilding
the cache efficiently, or what to do if it isn't built will be quite
involved so I think it's better we wait to see if we need it before
optimising prematurely.

* - Add beacon harness methods for sync signature create
- separate sync signature `SubnetId` and `SelecitonProof` types from attestations
- update op pool persistence to include sync aggregates

* merge with `altair`

* Add tests for decoding state/block with bad slot (#2341)

* Tidy SyncCommittee types

* More sync committee type cleanups/fallout

* merge with `altair`

* Some sync verification fixes and test progress

* Add hack to allow harness with altair spec

* Add test for applying base block to altair chain

* Use graffiti len more consistently (#2348)

* Replace a test deleted during Altair update (#2351)

* Apply comment fixes from Paul

Co-authored-by: Paul Hauner <[email protected]>

* Add fork_name methods

* Add fork checks and tests

* Add tests for applying altair to base

* Allow providing a custom spec to test harness

* Fix compile error in network

* Add tests for slot, epoch processing

* Fix clippy lints

* Fix release test

* Finish op pool sync committee logic, add a couple tests.

* Avoid slicing in PartialBeaconState (#2361)

* [Altair] Make anonymous var-length SSZ decoding explicit (#2362)

* Add explicit function for anon var length items

* Remove unused import

* Update comment

* Use macros for naive aggregation pool tests.

* small updates

* [Altair] Rewards tests (#2349)

* Rewards tests (base-only so far)

* Altair rewards tests, clean-ups

* Bump Rust version in Dockerfile

* [Altair] Remove duplicate vars, panic on `u64::pow` overflow (#2350)

* [Altair] Applying Base block to Altair chain (#2353)

* Add hack to allow harness with altair spec

* Add test for applying base block to altair chain

* Add fork_name methods

* Add fork checks and tests

* Add tests for applying altair to base

* Allow providing a custom spec to test harness

* Fix compile error in network

* Add tests for slot, epoch processing

* Fix clippy lints

* Fix release test

* Fix test compile error

* Fix test with inconsistent spec

* Use fork_name_at_slot in genesis

* [Altair] Add check for missed EF tests (#2346)

* Rewards tests (base-only so far)

* Altair rewards tests, clean-ups

* Bump Rust version in Dockerfile

* Add file access logging

* Tidy

* Fix clippy lint

* Fix typo

* Tidy, remove commented-out test exceptions

* Improve naming in python script

Co-authored-by: Michael Sproul <[email protected]>

* Fix beacon chain harness bug in `make_sync_contributions`. Key the `ObservedSyncAggregators` pool on slot + subcommittee index

* Accidentally removed a couple constants while merging

* fix a typo in a const, and a bunch of lints

* Restore lost CI YAML

* Address review comments

* Update comment

* Return an error if total bal is 0 (#2366)

* Fix and test selection proof `verify`

* Fix get_sync_aggregate

* update op pool tests to correctly use `get_sync_aggregate`

* Minor changes to justification code (#2367)

* [Altair] Optimization for `get_unslashed_participating_indices` (#2369)

* Lift calculation of unslashed indices

* Use HashSet for unslashed participating indices

* Make Operation Pool Compile Again (MOPCA)

* Add chainspec and genesis validators root to eth2_libp2p

* Network altair rpc (#2301)

* Add v2 messages to rpc decoder

* Ugly hack

* Pass chainspec and genesis_root to Rpc

* Add context bytes while encoding

* Add a ForkContext struct

* Pass ForkContext to rpc

* crate compiles

* Extract ForkContext into separate file; add a current_fork field

* Fix encoding/decoding

* Fix tests

* Remove fork_schedule from rebase

* Fix ForkContext

* Fix tests

* Remove fork_schedule again

* Add altair empty and full block limits

* Fix panic in snappy decoding

* Fix limits

* Move wrapping of RPCRequests to handler

* RpcRequestContainer only used in OutboundUpgrade

* Add altair blocks in rpc end to end tests

* same rpc limits for V1 and V2

* V2 response decoding happens only for valid protocols

* Add snappy response decoding tests

* Add more snappy tests

* Minor fixes

* Appease clippy

* to_context_bytes returns an Option

* Add padding snappy message test for v2

* Minor fixes; remove accidentally added file

* lint

* Add chainspec and genesis validators root to eth2_libp2p

* Add altair gossip types

* Subscribe to required gossip topics

* Unsubscribe from pre fork topics

* Compiles

* Start adding sync committee attnets

* Add Subnet enum to include SyncCommittee subnet_ids

* update_enr_bitfield takes a Subnet instead of SubnetId

* Fix network service

* Add MetaData V2

* Don't read context bytes for MetaData V2

* Add sync committee topics to whitelist

* Fix metadata encoding; fmt

* Fix next_fork methods in chainspec

* Minor fixes

* Fix next_fork_update in network service; add next_unsubscribe delay

* Accept peers which haven't updated next_fork_version/epoch

* Add sync committee topic tests

* Simplify required_gossip_digests; improve logging around fork boundary

* Fix tests

* Minor refactorings

* Add sync contribution aggregation tests to the op pool and fix an op pool bug

* Only advance state as necessary in sync committee verification tests. Fix compile error.

* Delete `verify_sync_contributions.rs` and fix a comment.

* Remove `Arc` from `current_sync_committee`

* Add `max_capacity` to `ObservedAggregates` constructor

* Update consensus code to v1.1.0-alpha.6

* Make the `SyncAggregateId` a fixed-length struct

* Add metrics and update docs

* Address review comments

* Sync committee subnets

* Ripple spec updates

* Revert "Remove `Arc` from `current_sync_committee`"

This reverts commit bf6324e.

* fix some pool tests

* Updates to some docs, general cleanup

* Fix default capacity for sync committee observed caches

* Fix default capacity for sync committee observed caches

* Fix default capacity for sync committee observed caches

* Fix more docs and metrics

* Remove `is_valid` methods from `SignedAggregateAndProof` and `SignedContributionAndProof`. The logic is duplicated in the signature set verification methods.

* remove outdated `FIXME`

* Fix docs

* Fix docs

* Implement preset <> config distinction

* Update confusing name `SyncCommitteeSubnetSize` -> `SyncSubcommitteeSize`

* Updates for latest spec merge

* update client for `lighthouse/spec` endpoint

* Add back accidentally deleted import

* Return ConfigAndPreset from VC API

* Don't panic if there aren't any aggregators

Rustfmt also returned with a vengeance to rearrange this block.

* Check state root in transition tests

* Fix clippy

* Fix Pyrmont & Prater configs. Delete Toledo.

* Add compatibility shim for /config/spec

* Fix fork_digest in Status message

* Revert "update client for `lighthouse/spec` endpoint"

This reverts commit 7a9b2ac.

# Conflicts:
#	validator_client/src/http_api/tests.rs

* - Update `SYNC_COMMITTEE_SUBNET_COUNT` to alpha.6
- rename the `sync_aggregator_selection_data.rs` file
- include sync committee ssz static tests in the `check_all_file_accessed.py` checks
- Update `ObservedAggregates` consts so they are specific to the type of object being cached

* - Update `NaiveAggregationPool`'s default capacity so it is specific to the type of object being inserted

* fix `observed_aggregates` tests

* Add chainspec and genesis validators root to eth2_libp2p

* Network altair rpc (#2301)

* Add v2 messages to rpc decoder

* Ugly hack

* Pass chainspec and genesis_root to Rpc

* Add context bytes while encoding

* Add a ForkContext struct

* Pass ForkContext to rpc

* crate compiles

* Extract ForkContext into separate file; add a current_fork field

* Fix encoding/decoding

* Fix tests

* Remove fork_schedule from rebase

* Fix ForkContext

* Fix tests

* Remove fork_schedule again

* Add altair empty and full block limits

* Fix panic in snappy decoding

* Fix limits

* Move wrapping of RPCRequests to handler

* RpcRequestContainer only used in OutboundUpgrade

* Add altair blocks in rpc end to end tests

* same rpc limits for V1 and V2

* V2 response decoding happens only for valid protocols

* Add snappy response decoding tests

* Add more snappy tests

* Minor fixes

* Appease clippy

* to_context_bytes returns an Option

* Add padding snappy message test for v2

* Minor fixes; remove accidentally added file

* lint

* Use SyncSubnetId for sync committee subnets

* Add worker tasks for sync committee gossip messages

* Use correct type level constants

* Decode altair gossip blocks

* Add a SyncCommitteeSubscribe network event

* PR updates

* fix op pool tests

* Minor cleanups

* Calculate `SyncAggregate` on demand

* Address review comments

* Op pool migration + superstruct

* Fix op pool test

* Update to spec v1.1.0-alpha.7

* Fix sync committee subscriptions

* Add sync committee subscription test

* Add chainspec and genesis validators root to eth2_libp2p

* Network altair rpc (#2301)

* Add v2 messages to rpc decoder

* Ugly hack

* Pass chainspec and genesis_root to Rpc

* Add context bytes while encoding

* Add a ForkContext struct

* Pass ForkContext to rpc

* crate compiles

* Extract ForkContext into separate file; add a current_fork field

* Fix encoding/decoding

* Fix tests

* Remove fork_schedule from rebase

* Fix ForkContext

* Fix tests

* Remove fork_schedule again

* Add altair empty and full block limits

* Fix panic in snappy decoding

* Fix limits

* Move wrapping of RPCRequests to handler

* RpcRequestContainer only used in OutboundUpgrade

* Add altair blocks in rpc end to end tests

* same rpc limits for V1 and V2

* V2 response decoding happens only for valid protocols

* Add snappy response decoding tests

* Add more snappy tests

* Minor fixes

* Appease clippy

* to_context_bytes returns an Option

* Add padding snappy message test for v2

* Minor fixes; remove accidentally added file

* lint

* - Fix sync committee verification on slot prior to sync committee period boundary
- Add `Arc` to `next_sync_committee`
- Other PR updates

* Refactor how we retrieve `PublicKey` for sync signature verification

* Key `observed_contributors` on `SlotSubcommitteeIndex`

* Update mainnet preset YAML

* Gossipsub message_id_fn changes

* Add tests for sync committee verification at slot before sync committee period boundary

* fix op pool tests

* - Make `SyncSubnetId` a required argument for `verify_sync_signature_for_gossip`
- Drop locks as soon as possible during metrics scrape

* fix sync committee verification test macro

* Fix beacon_chain test

* rust 1.53.0 updates

* add recursion limit to `simulator` crate

* cargo fmt

* `SyncCommitteSignature` -> `SyncCommitteeMessage`

* Updates related to merge with `unstable`

* More updates related to `SyncCommitteMessage` refactor

* Couple more `unstable` merge fixes

* Fix `SyncAggregate` field name

* Add chainspec and genesis validators root to eth2_libp2p

* Network altair rpc (#2301)

* Add v2 messages to rpc decoder

* Ugly hack

* Pass chainspec and genesis_root to Rpc

* Add context bytes while encoding

* Add a ForkContext struct

* Pass ForkContext to rpc

* crate compiles

* Extract ForkContext into separate file; add a current_fork field

* Fix encoding/decoding

* Fix tests

* Remove fork_schedule from rebase

* Fix ForkContext

* Fix tests

* Remove fork_schedule again

* Add altair empty and full block limits

* Fix panic in snappy decoding

* Fix limits

* Move wrapping of RPCRequests to handler

* RpcRequestContainer only used in OutboundUpgrade

* Add altair blocks in rpc end to end tests

* same rpc limits for V1 and V2

* V2 response decoding happens only for valid protocols

* Add snappy response decoding tests

* Add more snappy tests

* Minor fixes

* Appease clippy

* to_context_bytes returns an Option

* Add padding snappy message test for v2

* Minor fixes; remove accidentally added file

* lint

* Change libp2p dependency for message_id_fn

* appease clippy

* Add sync committee related metrics

* Expand and refactor fork functions

* Simplify compute_subnets_for_sync_committee

* Fix subnet service test

* Add v2 protocols for OutboundRequests missed in the merge

* Handle sync committee gossip errors

* Remove delay for updating fork

* fix the expected error in the sync contribution verification test at the sync period boundary

* Updates related to merge with `unstable`

* Couple more `unstable` merge fixes

* Split rpc encode/decode into smaller functions

* Import some relevant funcs from the VC

Based on "Expand and refactor fork functions"

* Fix issues with skip slots at fork boundaries

* Fix clippy again

* alpha.8 updates

* Pop sync committee tasks from beacon processor

* Fix some gossip scoring severity issue

* Fix bug in peer_manager; Improve logging around subnet discoveries

Co-authored-by: realbigsean <[email protected]>
Co-authored-by: Michael Sproul <[email protected]>
Co-authored-by: realbigsean <[email protected]>
Co-authored-by: Paul Hauner <[email protected]>
paulhauner added a commit that referenced this pull request Aug 4, 2021
commit 410d751
Merge: 8e7466a 6a6d175
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 18:02:45 2021 +1000

    Merge remote-tracking branch 'origin/network-altair' into altair-vc

commit 8e7466a
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 18:02:21 2021 +1000

    Fix beacon chain tests

commit 6a6d175
Author: pawan <[email protected]>
Date:   Tue Aug 3 12:49:30 2021 +0530

    Address more review comments

commit 3266fcd
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 17:20:15 2021 +1000

    Fix clippy

commit 86b68a4
Merge: 84830a8 68357f3
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 17:13:52 2021 +1000

    Merge remote-tracking branch 'origin/network-altair' into altair-vc

commit 84830a8
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 16:53:51 2021 +1000

    Implement API for sync committee indices

commit 68357f3
Author: pawan <[email protected]>
Date:   Mon Aug 2 13:44:44 2021 +0530

    Remove sync_committee_subnet_count from ChainSpec

commit 940535c
Merge: 05fe793 c5786a8
Author: pawan <[email protected]>
Date:   Mon Aug 2 13:09:04 2021 +0530

    Merge branch 'unstable' into network-altair

commit 05fe793
Author: pawan <[email protected]>
Date:   Mon Aug 2 12:07:49 2021 +0530

    Fix issues from review

commit 7b3a0a1
Author: Michael Sproul <[email protected]>
Date:   Mon Aug 2 16:11:02 2021 +1000

    Tweak log levels

commit 8d6cdf9
Merge: d1bbf1a c5786a8
Author: Michael Sproul <[email protected]>
Date:   Mon Aug 2 14:46:21 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair-vc

commit d1bbf1a
Author: Michael Sproul <[email protected]>
Date:   Fri Jul 30 12:46:26 2021 +1000

    Add /v2/ API endpoints

commit b9d134e
Author: Michael Sproul <[email protected]>
Date:   Mon Jul 26 12:37:49 2021 +1000

    Add target-peers and spec preset to local testnet

commit 0c25e92
Author: Michael Sproul <[email protected]>
Date:   Mon Jul 26 12:34:34 2021 +1000

    Prevent bootnode adding its own ENR

commit a3fb7b3
Author: Michael Sproul <[email protected]>
Date:   Mon Jul 26 12:34:11 2021 +1000

    Limit selection proof pre-computation

commit d0e2153
Author: Michael Sproul <[email protected]>
Date:   Fri Jul 23 14:23:15 2021 +1000

    Delete the fork service

commit e63b5de
Author: Michael Sproul <[email protected]>
Date:   Thu Jul 22 12:11:43 2021 +1000

    Altair validator client and API

commit 2b04ddf
Merge: 59a32a3 923486f
Author: pawan <[email protected]>
Date:   Wed Jul 28 14:45:57 2021 +0530

    Merge branch 'unstable' into network-altair

commit 59a32a3
Author: pawan <[email protected]>
Date:   Sat Jul 24 00:18:47 2021 +0530

    Fix minor issues

commit 0656056
Author: pawan <[email protected]>
Date:   Fri Jul 23 18:26:57 2021 +0530

    Change libp2p dependency to sigp fork

commit bed92c9
Author: realbigsean <[email protected]>
Date:   Tue Jul 13 12:21:56 2021 -0400

    fix incorrect method name and update test to ensure off-by-one is invalid

commit 6c76853
Merge: 2e35733 63923ea
Author: pawan <[email protected]>
Date:   Wed Jul 21 23:31:30 2021 +0530

    Merge discv5 upstream changes

commit 2e35733
Author: pawan <[email protected]>
Date:   Tue Jul 20 16:14:34 2021 +0530

    Maintain sync committee peers

commit 9f29788
Author: pawan <[email protected]>
Date:   Mon Jul 19 15:42:12 2021 +0530

    Fix subnet service test

commit 9f9c184
Merge: 3d42f06 9a8320b
Author: pawan <[email protected]>
Date:   Fri Jul 16 20:44:09 2021 +0530

    Merge network-1.5 changes

commit 3d42f06
Author: Pawan Dhananjay <[email protected]>
Date:   Fri Jul 16 18:56:38 2021 +0530

    Network altair gossip (#2464)

    * small refactors

    * Update attestation/deposit processing

    * Implement `upgrade_to_altair`, genesis init test

    * fix slashings and implement sync committee processing

    * refactor common epoch processing methods

    * delete unused imports

    * Fix typo in sync_committee_updates

    * Update to v1.1.0-alpha.3

    * Fix remaining EF tests/handlers!

    * Fix beacon chain tests non-altair (#2305)

    * Use RefMut

    * Reset Cargo.lock to "stable" style

    * Tidy block tree hash

    * Temporarily hardcode base fork in op pool

    * Update block proposal & op pool

    * Fix bounds check on compute_sync_committee_indices

    * Tidy phase0 op pool

    * Remove global fork schedule (#2314)

    * Remove global fork schedule
    * Fix remaining EF tests for refactor
    * Get top-level compiling again
    * Bubble YAML config changes

    * Use superstruct partial getters

    This makes our Altair consensus logic compatible with future forks.

    * Lots of test refactors (#2315)

    * Fix beacon chain tests non-altair

    * fix op pool tests

    * fix merge

    * get block processing tests working

    * Refactor state transition vector tests, half are passing

    * cargo fmt

    * PR updates

    * Skip ahead to epoch 256 on beacon harness tests. Fix op pool tests.

    * clippy updates

    * More test cleanups and fixes

    * Use `upgrade_to_altair` in state transition

    * More test fixes

    * Begin adding pools related to sync committees

    * Add fork upgrade test, fix EF spec test

    * Sync committee pool refactors, attempt to get ssz tests working

    * Revert BitVector change

    * Update lcli and local testnet scripts

    * Fix `SyncCommitteeContribution` bit vector length, fix `SyncCommitteeSignature` field name

    * update docs and add tests for sync committee operation pool

    * More test updates, release-tests might pass now...

    * Nuke old store benchmark

    * Fix arbitrary instances

    * Participation bits fixes, clippy fixes

    * add BitVector intersection and union tests

    * Disable indexing in types & state processing

    * Delete tree hash and state proc benchmarks

    * Disable aggressive lints in tests

    * Appease udeps

    * Fix the RPC tests without hacks

    Thanks @pawanjay176

    * Fix double update in github cargo fmt

    * Use published superstruct

    * Try splitting beacon_chain tests out of CI

    * Fix cargo-fmt --all

    * Abstract over fork in beacon_chain tests

    Also consolidate persistence_tests into store tests to
    reduce the # of integration test binaries slightly.

    * Fix clippy

    * Maintain backwards compatibility with std config

    * Sync committee signature verification work

    * Add an `Arc` to the `current_sync_committee` field, refactor `sync_committee_verification` code

    * Clean up imports

    * Move `sync_committee_base_epoch` to `Epoch`

    * Fmt and fix some lints

    * Add tests for new observation pools

    * Some op pool work

    * Provide clarity about BeaconState leaf count (#2339)

    * Remove sync committee indices cache

    We could add back a cache at some point, but it would likely look
    completely different due to having to compute the indices "backwards"
    from the public keys. Dealing with all the cases involving rebuilding
    the cache efficiently, or what to do if it isn't built will be quite
    involved so I think it's better we wait to see if we need it before
    optimising prematurely.

    * - Add beacon harness methods for sync signature create
    - separate sync signature `SubnetId` and `SelecitonProof` types from attestations
    - update op pool persistence to include sync aggregates

    * merge with `altair`

    * Add tests for decoding state/block with bad slot (#2341)

    * Tidy SyncCommittee types

    * More sync committee type cleanups/fallout

    * merge with `altair`

    * Some sync verification fixes and test progress

    * Add hack to allow harness with altair spec

    * Add test for applying base block to altair chain

    * Use graffiti len more consistently (#2348)

    * Replace a test deleted during Altair update (#2351)

    * Apply comment fixes from Paul

    Co-authored-by: Paul Hauner <[email protected]>

    * Add fork_name methods

    * Add fork checks and tests

    * Add tests for applying altair to base

    * Allow providing a custom spec to test harness

    * Fix compile error in network

    * Add tests for slot, epoch processing

    * Fix clippy lints

    * Fix release test

    * Finish op pool sync committee logic, add a couple tests.

    * Avoid slicing in PartialBeaconState (#2361)

    * [Altair] Make anonymous var-length SSZ decoding explicit (#2362)

    * Add explicit function for anon var length items

    * Remove unused import

    * Update comment

    * Use macros for naive aggregation pool tests.

    * small updates

    * [Altair] Rewards tests (#2349)

    * Rewards tests (base-only so far)

    * Altair rewards tests, clean-ups

    * Bump Rust version in Dockerfile

    * [Altair] Remove duplicate vars, panic on `u64::pow` overflow (#2350)

    * [Altair] Applying Base block to Altair chain (#2353)

    * Add hack to allow harness with altair spec

    * Add test for applying base block to altair chain

    * Add fork_name methods

    * Add fork checks and tests

    * Add tests for applying altair to base

    * Allow providing a custom spec to test harness

    * Fix compile error in network

    * Add tests for slot, epoch processing

    * Fix clippy lints

    * Fix release test

    * Fix test compile error

    * Fix test with inconsistent spec

    * Use fork_name_at_slot in genesis

    * [Altair] Add check for missed EF tests (#2346)

    * Rewards tests (base-only so far)

    * Altair rewards tests, clean-ups

    * Bump Rust version in Dockerfile

    * Add file access logging

    * Tidy

    * Fix clippy lint

    * Fix typo

    * Tidy, remove commented-out test exceptions

    * Improve naming in python script

    Co-authored-by: Michael Sproul <[email protected]>

    * Fix beacon chain harness bug in `make_sync_contributions`. Key the `ObservedSyncAggregators` pool on slot + subcommittee index

    * Accidentally removed a couple constants while merging

    * fix a typo in a const, and a bunch of lints

    * Restore lost CI YAML

    * Address review comments

    * Update comment

    * Return an error if total bal is 0 (#2366)

    * Fix and test selection proof `verify`

    * Fix get_sync_aggregate

    * update op pool tests to correctly use `get_sync_aggregate`

    * Minor changes to justification code (#2367)

    * [Altair] Optimization for `get_unslashed_participating_indices` (#2369)

    * Lift calculation of unslashed indices

    * Use HashSet for unslashed participating indices

    * Make Operation Pool Compile Again (MOPCA)

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * Add chainspec and genesis validators root to eth2_libp2p

    * Add altair gossip types

    * Subscribe to required gossip topics

    * Unsubscribe from pre fork topics

    * Compiles

    * Start adding sync committee attnets

    * Add Subnet enum to include SyncCommittee subnet_ids

    * update_enr_bitfield takes a Subnet instead of SubnetId

    * Fix network service

    * Add MetaData V2

    * Don't read context bytes for MetaData V2

    * Add sync committee topics to whitelist

    * Fix metadata encoding; fmt

    * Fix next_fork methods in chainspec

    * Minor fixes

    * Fix next_fork_update in network service; add next_unsubscribe delay

    * Accept peers which haven't updated next_fork_version/epoch

    * Add sync committee topic tests

    * Simplify required_gossip_digests; improve logging around fork boundary

    * Fix tests

    * Minor refactorings

    * Add sync contribution aggregation tests to the op pool and fix an op pool bug

    * Only advance state as necessary in sync committee verification tests. Fix compile error.

    * Delete `verify_sync_contributions.rs` and fix a comment.

    * Remove `Arc` from `current_sync_committee`

    * Add `max_capacity` to `ObservedAggregates` constructor

    * Update consensus code to v1.1.0-alpha.6

    * Make the `SyncAggregateId` a fixed-length struct

    * Add metrics and update docs

    * Address review comments

    * Sync committee subnets

    * Ripple spec updates

    * Revert "Remove `Arc` from `current_sync_committee`"

    This reverts commit bf6324e.

    * fix some pool tests

    * Updates to some docs, general cleanup

    * Fix default capacity for sync committee observed caches

    * Fix default capacity for sync committee observed caches

    * Fix default capacity for sync committee observed caches

    * Fix more docs and metrics

    * Remove `is_valid` methods from `SignedAggregateAndProof` and `SignedContributionAndProof`. The logic is duplicated in the signature set verification methods.

    * remove outdated `FIXME`

    * Fix docs

    * Fix docs

    * Implement preset <> config distinction

    * Update confusing name `SyncCommitteeSubnetSize` -> `SyncSubcommitteeSize`

    * Updates for latest spec merge

    * update client for `lighthouse/spec` endpoint

    * Add back accidentally deleted import

    * Return ConfigAndPreset from VC API

    * Don't panic if there aren't any aggregators

    Rustfmt also returned with a vengeance to rearrange this block.

    * Check state root in transition tests

    * Fix clippy

    * Fix Pyrmont & Prater configs. Delete Toledo.

    * Add compatibility shim for /config/spec

    * Fix fork_digest in Status message

    * Revert "update client for `lighthouse/spec` endpoint"

    This reverts commit 7a9b2ac.

    # Conflicts:
    #	validator_client/src/http_api/tests.rs

    * - Update `SYNC_COMMITTEE_SUBNET_COUNT` to alpha.6
    - rename the `sync_aggregator_selection_data.rs` file
    - include sync committee ssz static tests in the `check_all_file_accessed.py` checks
    - Update `ObservedAggregates` consts so they are specific to the type of object being cached

    * - Update `NaiveAggregationPool`'s default capacity so it is specific to the type of object being inserted

    * fix `observed_aggregates` tests

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * Use SyncSubnetId for sync committee subnets

    * Add worker tasks for sync committee gossip messages

    * Use correct type level constants

    * Decode altair gossip blocks

    * Add a SyncCommitteeSubscribe network event

    * PR updates

    * fix op pool tests

    * Minor cleanups

    * Calculate `SyncAggregate` on demand

    * Address review comments

    * Op pool migration + superstruct

    * Fix op pool test

    * Update to spec v1.1.0-alpha.7

    * Fix sync committee subscriptions

    * Add sync committee subscription test

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * - Fix sync committee verification on slot prior to sync committee period boundary
    - Add `Arc` to `next_sync_committee`
    - Other PR updates

    * Refactor how we retrieve `PublicKey` for sync signature verification

    * Key `observed_contributors` on `SlotSubcommitteeIndex`

    * Update mainnet preset YAML

    * Gossipsub message_id_fn changes

    * Add tests for sync committee verification at slot before sync committee period boundary

    * fix op pool tests

    * - Make `SyncSubnetId` a required argument for `verify_sync_signature_for_gossip`
    - Drop locks as soon as possible during metrics scrape

    * fix sync committee verification test macro

    * Fix beacon_chain test

    * rust 1.53.0 updates

    * add recursion limit to `simulator` crate

    * cargo fmt

    * `SyncCommitteSignature` -> `SyncCommitteeMessage`

    * Updates related to merge with `unstable`

    * More updates related to `SyncCommitteMessage` refactor

    * Couple more `unstable` merge fixes

    * Fix `SyncAggregate` field name

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * Change libp2p dependency for message_id_fn

    * appease clippy

    * Add sync committee related metrics

    * Expand and refactor fork functions

    * Simplify compute_subnets_for_sync_committee

    * Fix subnet service test

    * Add v2 protocols for OutboundRequests missed in the merge

    * Handle sync committee gossip errors

    * Remove delay for updating fork

    * fix the expected error in the sync contribution verification test at the sync period boundary

    * Updates related to merge with `unstable`

    * Couple more `unstable` merge fixes

    * Split rpc encode/decode into smaller functions

    * Import some relevant funcs from the VC

    Based on "Expand and refactor fork functions"

    * Fix issues with skip slots at fork boundaries

    * Fix clippy again

    * alpha.8 updates

    * Pop sync committee tasks from beacon processor

    * Fix some gossip scoring severity issue

    * Fix bug in peer_manager; Improve logging around subnet discoveries

    Co-authored-by: realbigsean <[email protected]>
    Co-authored-by: Michael Sproul <[email protected]>
    Co-authored-by: realbigsean <[email protected]>
    Co-authored-by: Paul Hauner <[email protected]>

commit f37f267
Author: Pawan Dhananjay <[email protected]>
Date:   Tue May 11 10:30:43 2021 +0530

    Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

commit b477bdd
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p
paulhauner added a commit that referenced this pull request Aug 4, 2021
commit 410d751
Merge: 8e7466a 6a6d175
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 18:02:45 2021 +1000

    Merge remote-tracking branch 'origin/network-altair' into altair-vc

commit 8e7466a
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 18:02:21 2021 +1000

    Fix beacon chain tests

commit 6a6d175
Author: pawan <[email protected]>
Date:   Tue Aug 3 12:49:30 2021 +0530

    Address more review comments

commit 3266fcd
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 17:20:15 2021 +1000

    Fix clippy

commit 86b68a4
Merge: 84830a8 68357f3
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 17:13:52 2021 +1000

    Merge remote-tracking branch 'origin/network-altair' into altair-vc

commit 84830a8
Author: Michael Sproul <[email protected]>
Date:   Tue Aug 3 16:53:51 2021 +1000

    Implement API for sync committee indices

commit 68357f3
Author: pawan <[email protected]>
Date:   Mon Aug 2 13:44:44 2021 +0530

    Remove sync_committee_subnet_count from ChainSpec

commit 940535c
Merge: 05fe793 c5786a8
Author: pawan <[email protected]>
Date:   Mon Aug 2 13:09:04 2021 +0530

    Merge branch 'unstable' into network-altair

commit 05fe793
Author: pawan <[email protected]>
Date:   Mon Aug 2 12:07:49 2021 +0530

    Fix issues from review

commit 7b3a0a1
Author: Michael Sproul <[email protected]>
Date:   Mon Aug 2 16:11:02 2021 +1000

    Tweak log levels

commit 8d6cdf9
Merge: d1bbf1a c5786a8
Author: Michael Sproul <[email protected]>
Date:   Mon Aug 2 14:46:21 2021 +1000

    Merge remote-tracking branch 'origin/unstable' into altair-vc

commit d1bbf1a
Author: Michael Sproul <[email protected]>
Date:   Fri Jul 30 12:46:26 2021 +1000

    Add /v2/ API endpoints

commit b9d134e
Author: Michael Sproul <[email protected]>
Date:   Mon Jul 26 12:37:49 2021 +1000

    Add target-peers and spec preset to local testnet

commit 0c25e92
Author: Michael Sproul <[email protected]>
Date:   Mon Jul 26 12:34:34 2021 +1000

    Prevent bootnode adding its own ENR

commit a3fb7b3
Author: Michael Sproul <[email protected]>
Date:   Mon Jul 26 12:34:11 2021 +1000

    Limit selection proof pre-computation

commit d0e2153
Author: Michael Sproul <[email protected]>
Date:   Fri Jul 23 14:23:15 2021 +1000

    Delete the fork service

commit e63b5de
Author: Michael Sproul <[email protected]>
Date:   Thu Jul 22 12:11:43 2021 +1000

    Altair validator client and API

commit 2b04ddf
Merge: 59a32a3 923486f
Author: pawan <[email protected]>
Date:   Wed Jul 28 14:45:57 2021 +0530

    Merge branch 'unstable' into network-altair

commit 59a32a3
Author: pawan <[email protected]>
Date:   Sat Jul 24 00:18:47 2021 +0530

    Fix minor issues

commit 0656056
Author: pawan <[email protected]>
Date:   Fri Jul 23 18:26:57 2021 +0530

    Change libp2p dependency to sigp fork

commit bed92c9
Author: realbigsean <[email protected]>
Date:   Tue Jul 13 12:21:56 2021 -0400

    fix incorrect method name and update test to ensure off-by-one is invalid

commit 6c76853
Merge: 2e35733 63923ea
Author: pawan <[email protected]>
Date:   Wed Jul 21 23:31:30 2021 +0530

    Merge discv5 upstream changes

commit 2e35733
Author: pawan <[email protected]>
Date:   Tue Jul 20 16:14:34 2021 +0530

    Maintain sync committee peers

commit 9f29788
Author: pawan <[email protected]>
Date:   Mon Jul 19 15:42:12 2021 +0530

    Fix subnet service test

commit 9f9c184
Merge: 3d42f06 9a8320b
Author: pawan <[email protected]>
Date:   Fri Jul 16 20:44:09 2021 +0530

    Merge network-1.5 changes

commit 3d42f06
Author: Pawan Dhananjay <[email protected]>
Date:   Fri Jul 16 18:56:38 2021 +0530

    Network altair gossip (#2464)

    * small refactors

    * Update attestation/deposit processing

    * Implement `upgrade_to_altair`, genesis init test

    * fix slashings and implement sync committee processing

    * refactor common epoch processing methods

    * delete unused imports

    * Fix typo in sync_committee_updates

    * Update to v1.1.0-alpha.3

    * Fix remaining EF tests/handlers!

    * Fix beacon chain tests non-altair (#2305)

    * Use RefMut

    * Reset Cargo.lock to "stable" style

    * Tidy block tree hash

    * Temporarily hardcode base fork in op pool

    * Update block proposal & op pool

    * Fix bounds check on compute_sync_committee_indices

    * Tidy phase0 op pool

    * Remove global fork schedule (#2314)

    * Remove global fork schedule
    * Fix remaining EF tests for refactor
    * Get top-level compiling again
    * Bubble YAML config changes

    * Use superstruct partial getters

    This makes our Altair consensus logic compatible with future forks.

    * Lots of test refactors (#2315)

    * Fix beacon chain tests non-altair

    * fix op pool tests

    * fix merge

    * get block processing tests working

    * Refactor state transition vector tests, half are passing

    * cargo fmt

    * PR updates

    * Skip ahead to epoch 256 on beacon harness tests. Fix op pool tests.

    * clippy updates

    * More test cleanups and fixes

    * Use `upgrade_to_altair` in state transition

    * More test fixes

    * Begin adding pools related to sync committees

    * Add fork upgrade test, fix EF spec test

    * Sync committee pool refactors, attempt to get ssz tests working

    * Revert BitVector change

    * Update lcli and local testnet scripts

    * Fix `SyncCommitteeContribution` bit vector length, fix `SyncCommitteeSignature` field name

    * update docs and add tests for sync committee operation pool

    * More test updates, release-tests might pass now...

    * Nuke old store benchmark

    * Fix arbitrary instances

    * Participation bits fixes, clippy fixes

    * add BitVector intersection and union tests

    * Disable indexing in types & state processing

    * Delete tree hash and state proc benchmarks

    * Disable aggressive lints in tests

    * Appease udeps

    * Fix the RPC tests without hacks

    Thanks @pawanjay176

    * Fix double update in github cargo fmt

    * Use published superstruct

    * Try splitting beacon_chain tests out of CI

    * Fix cargo-fmt --all

    * Abstract over fork in beacon_chain tests

    Also consolidate persistence_tests into store tests to
    reduce the # of integration test binaries slightly.

    * Fix clippy

    * Maintain backwards compatibility with std config

    * Sync committee signature verification work

    * Add an `Arc` to the `current_sync_committee` field, refactor `sync_committee_verification` code

    * Clean up imports

    * Move `sync_committee_base_epoch` to `Epoch`

    * Fmt and fix some lints

    * Add tests for new observation pools

    * Some op pool work

    * Provide clarity about BeaconState leaf count (#2339)

    * Remove sync committee indices cache

    We could add back a cache at some point, but it would likely look
    completely different due to having to compute the indices "backwards"
    from the public keys. Dealing with all the cases involving rebuilding
    the cache efficiently, or what to do if it isn't built will be quite
    involved so I think it's better we wait to see if we need it before
    optimising prematurely.

    * - Add beacon harness methods for sync signature create
    - separate sync signature `SubnetId` and `SelecitonProof` types from attestations
    - update op pool persistence to include sync aggregates

    * merge with `altair`

    * Add tests for decoding state/block with bad slot (#2341)

    * Tidy SyncCommittee types

    * More sync committee type cleanups/fallout

    * merge with `altair`

    * Some sync verification fixes and test progress

    * Add hack to allow harness with altair spec

    * Add test for applying base block to altair chain

    * Use graffiti len more consistently (#2348)

    * Replace a test deleted during Altair update (#2351)

    * Apply comment fixes from Paul

    Co-authored-by: Paul Hauner <[email protected]>

    * Add fork_name methods

    * Add fork checks and tests

    * Add tests for applying altair to base

    * Allow providing a custom spec to test harness

    * Fix compile error in network

    * Add tests for slot, epoch processing

    * Fix clippy lints

    * Fix release test

    * Finish op pool sync committee logic, add a couple tests.

    * Avoid slicing in PartialBeaconState (#2361)

    * [Altair] Make anonymous var-length SSZ decoding explicit (#2362)

    * Add explicit function for anon var length items

    * Remove unused import

    * Update comment

    * Use macros for naive aggregation pool tests.

    * small updates

    * [Altair] Rewards tests (#2349)

    * Rewards tests (base-only so far)

    * Altair rewards tests, clean-ups

    * Bump Rust version in Dockerfile

    * [Altair] Remove duplicate vars, panic on `u64::pow` overflow (#2350)

    * [Altair] Applying Base block to Altair chain (#2353)

    * Add hack to allow harness with altair spec

    * Add test for applying base block to altair chain

    * Add fork_name methods

    * Add fork checks and tests

    * Add tests for applying altair to base

    * Allow providing a custom spec to test harness

    * Fix compile error in network

    * Add tests for slot, epoch processing

    * Fix clippy lints

    * Fix release test

    * Fix test compile error

    * Fix test with inconsistent spec

    * Use fork_name_at_slot in genesis

    * [Altair] Add check for missed EF tests (#2346)

    * Rewards tests (base-only so far)

    * Altair rewards tests, clean-ups

    * Bump Rust version in Dockerfile

    * Add file access logging

    * Tidy

    * Fix clippy lint

    * Fix typo

    * Tidy, remove commented-out test exceptions

    * Improve naming in python script

    Co-authored-by: Michael Sproul <[email protected]>

    * Fix beacon chain harness bug in `make_sync_contributions`. Key the `ObservedSyncAggregators` pool on slot + subcommittee index

    * Accidentally removed a couple constants while merging

    * fix a typo in a const, and a bunch of lints

    * Restore lost CI YAML

    * Address review comments

    * Update comment

    * Return an error if total bal is 0 (#2366)

    * Fix and test selection proof `verify`

    * Fix get_sync_aggregate

    * update op pool tests to correctly use `get_sync_aggregate`

    * Minor changes to justification code (#2367)

    * [Altair] Optimization for `get_unslashed_participating_indices` (#2369)

    * Lift calculation of unslashed indices

    * Use HashSet for unslashed participating indices

    * Make Operation Pool Compile Again (MOPCA)

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * Add chainspec and genesis validators root to eth2_libp2p

    * Add altair gossip types

    * Subscribe to required gossip topics

    * Unsubscribe from pre fork topics

    * Compiles

    * Start adding sync committee attnets

    * Add Subnet enum to include SyncCommittee subnet_ids

    * update_enr_bitfield takes a Subnet instead of SubnetId

    * Fix network service

    * Add MetaData V2

    * Don't read context bytes for MetaData V2

    * Add sync committee topics to whitelist

    * Fix metadata encoding; fmt

    * Fix next_fork methods in chainspec

    * Minor fixes

    * Fix next_fork_update in network service; add next_unsubscribe delay

    * Accept peers which haven't updated next_fork_version/epoch

    * Add sync committee topic tests

    * Simplify required_gossip_digests; improve logging around fork boundary

    * Fix tests

    * Minor refactorings

    * Add sync contribution aggregation tests to the op pool and fix an op pool bug

    * Only advance state as necessary in sync committee verification tests. Fix compile error.

    * Delete `verify_sync_contributions.rs` and fix a comment.

    * Remove `Arc` from `current_sync_committee`

    * Add `max_capacity` to `ObservedAggregates` constructor

    * Update consensus code to v1.1.0-alpha.6

    * Make the `SyncAggregateId` a fixed-length struct

    * Add metrics and update docs

    * Address review comments

    * Sync committee subnets

    * Ripple spec updates

    * Revert "Remove `Arc` from `current_sync_committee`"

    This reverts commit bf6324e.

    * fix some pool tests

    * Updates to some docs, general cleanup

    * Fix default capacity for sync committee observed caches

    * Fix default capacity for sync committee observed caches

    * Fix default capacity for sync committee observed caches

    * Fix more docs and metrics

    * Remove `is_valid` methods from `SignedAggregateAndProof` and `SignedContributionAndProof`. The logic is duplicated in the signature set verification methods.

    * remove outdated `FIXME`

    * Fix docs

    * Fix docs

    * Implement preset <> config distinction

    * Update confusing name `SyncCommitteeSubnetSize` -> `SyncSubcommitteeSize`

    * Updates for latest spec merge

    * update client for `lighthouse/spec` endpoint

    * Add back accidentally deleted import

    * Return ConfigAndPreset from VC API

    * Don't panic if there aren't any aggregators

    Rustfmt also returned with a vengeance to rearrange this block.

    * Check state root in transition tests

    * Fix clippy

    * Fix Pyrmont & Prater configs. Delete Toledo.

    * Add compatibility shim for /config/spec

    * Fix fork_digest in Status message

    * Revert "update client for `lighthouse/spec` endpoint"

    This reverts commit 7a9b2ac.

    # Conflicts:
    #	validator_client/src/http_api/tests.rs

    * - Update `SYNC_COMMITTEE_SUBNET_COUNT` to alpha.6
    - rename the `sync_aggregator_selection_data.rs` file
    - include sync committee ssz static tests in the `check_all_file_accessed.py` checks
    - Update `ObservedAggregates` consts so they are specific to the type of object being cached

    * - Update `NaiveAggregationPool`'s default capacity so it is specific to the type of object being inserted

    * fix `observed_aggregates` tests

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * Use SyncSubnetId for sync committee subnets

    * Add worker tasks for sync committee gossip messages

    * Use correct type level constants

    * Decode altair gossip blocks

    * Add a SyncCommitteeSubscribe network event

    * PR updates

    * fix op pool tests

    * Minor cleanups

    * Calculate `SyncAggregate` on demand

    * Address review comments

    * Op pool migration + superstruct

    * Fix op pool test

    * Update to spec v1.1.0-alpha.7

    * Fix sync committee subscriptions

    * Add sync committee subscription test

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * - Fix sync committee verification on slot prior to sync committee period boundary
    - Add `Arc` to `next_sync_committee`
    - Other PR updates

    * Refactor how we retrieve `PublicKey` for sync signature verification

    * Key `observed_contributors` on `SlotSubcommitteeIndex`

    * Update mainnet preset YAML

    * Gossipsub message_id_fn changes

    * Add tests for sync committee verification at slot before sync committee period boundary

    * fix op pool tests

    * - Make `SyncSubnetId` a required argument for `verify_sync_signature_for_gossip`
    - Drop locks as soon as possible during metrics scrape

    * fix sync committee verification test macro

    * Fix beacon_chain test

    * rust 1.53.0 updates

    * add recursion limit to `simulator` crate

    * cargo fmt

    * `SyncCommitteSignature` -> `SyncCommitteeMessage`

    * Updates related to merge with `unstable`

    * More updates related to `SyncCommitteMessage` refactor

    * Couple more `unstable` merge fixes

    * Fix `SyncAggregate` field name

    * Add chainspec and genesis validators root to eth2_libp2p

    * Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

    * Change libp2p dependency for message_id_fn

    * appease clippy

    * Add sync committee related metrics

    * Expand and refactor fork functions

    * Simplify compute_subnets_for_sync_committee

    * Fix subnet service test

    * Add v2 protocols for OutboundRequests missed in the merge

    * Handle sync committee gossip errors

    * Remove delay for updating fork

    * fix the expected error in the sync contribution verification test at the sync period boundary

    * Updates related to merge with `unstable`

    * Couple more `unstable` merge fixes

    * Split rpc encode/decode into smaller functions

    * Import some relevant funcs from the VC

    Based on "Expand and refactor fork functions"

    * Fix issues with skip slots at fork boundaries

    * Fix clippy again

    * alpha.8 updates

    * Pop sync committee tasks from beacon processor

    * Fix some gossip scoring severity issue

    * Fix bug in peer_manager; Improve logging around subnet discoveries

    Co-authored-by: realbigsean <[email protected]>
    Co-authored-by: Michael Sproul <[email protected]>
    Co-authored-by: realbigsean <[email protected]>
    Co-authored-by: Paul Hauner <[email protected]>

commit f37f267
Author: Pawan Dhananjay <[email protected]>
Date:   Tue May 11 10:30:43 2021 +0530

    Network altair rpc (#2301)

    * Add v2 messages to rpc decoder

    * Ugly hack

    * Pass chainspec and genesis_root to Rpc

    * Add context bytes while encoding

    * Add a ForkContext struct

    * Pass ForkContext to rpc

    * crate compiles

    * Extract ForkContext into separate file; add a current_fork field

    * Fix encoding/decoding

    * Fix tests

    * Remove fork_schedule from rebase

    * Fix ForkContext

    * Fix tests

    * Remove fork_schedule again

    * Add altair empty and full block limits

    * Fix panic in snappy decoding

    * Fix limits

    * Move wrapping of RPCRequests to handler

    * RpcRequestContainer only used in OutboundUpgrade

    * Add altair blocks in rpc end to end tests

    * same rpc limits for V1 and V2

    * V2 response decoding happens only for valid protocols

    * Add snappy response decoding tests

    * Add more snappy tests

    * Minor fixes

    * Appease clippy

    * to_context_bytes returns an Option

    * Add padding snappy message test for v2

    * Minor fixes; remove accidentally added file

    * lint

commit b477bdd
Author: pawan <[email protected]>
Date:   Mon Apr 5 19:30:48 2021 +0530

    Add chainspec and genesis validators root to eth2_libp2p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants