Skip to content

Commit

Permalink
rename preset variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Jan 27, 2025
1 parent 0a05231 commit f45272a
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"MAX_TRANSACTIONS_PER_INCLUSION_LIST": "1",
"EIP7805_FORK_EPOCH": "18446744073709551615",
"EIP7805_FORK_VERSION": "0x09000000",
"IL_COMMITTEE_SIZE": "16",
"INCLUSION_LIST_COMMITTEE_SIZE": "16",
"MAX_REQUEST_INCLUSION_LIST": "16",
"MAX_BYTES_PER_INCLUSION_LIST": "8192"
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static SpecConfigEip7805 required(final SpecConfig specConfig) {

UInt64 getEip7805ForkEpoch();

int getIlCommitteeSize();
int getInclusionListCommitteeSize();

int getMaxTransactionsPerInclusionList();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public UInt64 getEip7805ForkEpoch() {
}

@Override
public int getIlCommitteeSize() {
public int getInclusionListCommitteeSize() {
return ilCommitteeSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public IntList getInclusionListCommittee(final BeaconState state, final UInt64 s
final int activeValidatorCount = indices.size();
final UInt64 start =
slot.mod(specConfigEip7805.getSlotsPerEpoch())
.times(specConfigEip7805.getIlCommitteeSize());
final UInt64 end = start.plus(specConfigEip7805.getIlCommitteeSize());
.times(specConfigEip7805.getInclusionListCommitteeSize());
final UInt64 end = start.plus(specConfigEip7805.getInclusionListCommitteeSize());
final IntList inclusionListCommitteeIndices = new IntArrayList();
for (int index = start.intValue(); index < end.intValue(); index++) {
final int shuffledIndex = miscHelpers.computeShuffledIndex(index, activeValidatorCount, seed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ MAX_BLOBS_PER_BLOCK_ELECTRA: 9
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152

# EIP7805
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16
MAX_TRANSACTIONS_PER_INCLUSION_LIST: 1
# 2**4
MAX_REQUEST_INCLUSION_LIST: 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ MAX_BLOBS_PER_BLOCK_ELECTRA: 9
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152

# EIP7805
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16
MAX_TRANSACTIONS_PER_INCLUSION_LIST: 1
# 2**4
MAX_REQUEST_INCLUSION_LIST: 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ MAX_BLOBS_PER_BLOCK_ELECTRA: 9
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 1152

# EIP7805
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16
MAX_TRANSACTIONS_PER_INCLUSION_LIST: 1
# 2**4
MAX_REQUEST_INCLUSION_LIST: 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Inclusion List Committee
# ---------------------------------------------------------------
# 2**4 (= 16)
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16

# Execution
# ---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Inclusion List Committee
# ---------------------------------------------------------------
# 2**4 (= 16)
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16

# Execution
# ---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Inclusion List Committee
# ---------------------------------------------------------------
# 2**4 (= 16)
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16

# Execution
# ---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Inclusion List Committee
# ---------------------------------------------------------------
# 2**4 (= 16)
IL_COMMITTEE_SIZE: 16
INCLUSION_LIST_COMMITTEE_SIZE: 16

# Execution
# ---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
package tech.pegasys.teku.statetransition.inclusionlist;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;

import tech.pegasys.teku.ethereum.events.SlotEventsChannel;
import tech.pegasys.teku.infrastructure.async.SafeFuture;
import tech.pegasys.teku.infrastructure.unsigned.UInt64;
Expand All @@ -31,8 +28,8 @@ public class InclusionListManager implements SlotEventsChannel {

private final SignedInclusionListValidator signedInclusionListValidator;

private final ConcurrentHashMap<UInt64, List<SignedInclusionList>> validatorIndexToInclusionLists =
new ConcurrentHashMap<>();
private final ConcurrentHashMap<UInt64, List<SignedInclusionList>>
validatorIndexToInclusionLists = new ConcurrentHashMap<>();

public InclusionListManager(final SignedInclusionListValidator signedInclusionListValidator) {
this.signedInclusionListValidator = signedInclusionListValidator;
Expand Down

0 comments on commit f45272a

Please sign in to comment.