mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Attestation superstruct changes for EIP 7549 (#5644)
* update * experiment * superstruct changes * revert * superstruct changes * fix tests * indexed attestation * indexed attestation superstruct * updated TODOs
This commit is contained in:
@@ -47,7 +47,8 @@ impl<E: EthSpec> AttestationBatch<E> {
|
||||
self.attestations.push(Arc::downgrade(&indexed_record));
|
||||
|
||||
let attestation_data_hash = indexed_record.record.attestation_data_hash;
|
||||
for &validator_index in &indexed_record.indexed.attesting_indices {
|
||||
|
||||
for &validator_index in indexed_record.indexed.attesting_indices_iter() {
|
||||
self.attesters
|
||||
.entry((validator_index, attestation_data_hash))
|
||||
.and_modify(|existing_entry| {
|
||||
@@ -56,8 +57,8 @@ impl<E: EthSpec> AttestationBatch<E> {
|
||||
// smaller indexed attestation. Single-bit attestations will usually be removed
|
||||
// completely by this process, and aggregates will only be retained if they
|
||||
// are not redundant with respect to a larger aggregate seen in the same batch.
|
||||
if existing_entry.indexed.attesting_indices.len()
|
||||
< indexed_record.indexed.attesting_indices.len()
|
||||
if existing_entry.indexed.attesting_indices_len()
|
||||
< indexed_record.indexed.attesting_indices_len()
|
||||
{
|
||||
*existing_entry = indexed_record.clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user