Merge pull request #1007 from ethereum/v060-fixes
Some v0.6.0->v0.6.1 fixes
This commit is contained in:
commit
90cacf5bfc
|
@ -15,6 +15,8 @@ MAX_INDICES_PER_ATTESTATION: 4096
|
||||||
MIN_PER_EPOCH_CHURN_LIMIT: 4
|
MIN_PER_EPOCH_CHURN_LIMIT: 4
|
||||||
# 2**16 (= 65,536)
|
# 2**16 (= 65,536)
|
||||||
CHURN_LIMIT_QUOTIENT: 65536
|
CHURN_LIMIT_QUOTIENT: 65536
|
||||||
|
# Normalizes base rewards
|
||||||
|
BASE_REWARDS_PER_EPOCH: 5
|
||||||
# See issue 563
|
# See issue 563
|
||||||
SHUFFLE_ROUND_COUNT: 90
|
SHUFFLE_ROUND_COUNT: 90
|
||||||
|
|
||||||
|
@ -36,7 +38,7 @@ MAX_EFFECTIVE_BALANCE: 32000000000
|
||||||
# 2**4 * 10**9 (= 16,000,000,000) Gwei
|
# 2**4 * 10**9 (= 16,000,000,000) Gwei
|
||||||
EJECTION_BALANCE: 16000000000
|
EJECTION_BALANCE: 16000000000
|
||||||
# 2**0 * 10**9 (= 1,000,000,000) Gwei
|
# 2**0 * 10**9 (= 1,000,000,000) Gwei
|
||||||
HIGH_BALANCE_INCREMENT: 1000000000
|
EFFECTIVE_BALANCE_INCREMENT: 1000000000
|
||||||
|
|
||||||
|
|
||||||
# Initial values
|
# Initial values
|
||||||
|
@ -71,6 +73,8 @@ MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256
|
||||||
PERSISTENT_COMMITTEE_PERIOD: 2048
|
PERSISTENT_COMMITTEE_PERIOD: 2048
|
||||||
# 2**6 (= 64) epochs ~7 hours
|
# 2**6 (= 64) epochs ~7 hours
|
||||||
MAX_CROSSLINK_EPOCHS: 64
|
MAX_CROSSLINK_EPOCHS: 64
|
||||||
|
# 2**2 (= 4) epochs 25.6 minutes
|
||||||
|
MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4
|
||||||
|
|
||||||
|
|
||||||
# State list lengths
|
# State list lengths
|
||||||
|
@ -91,14 +95,14 @@ BASE_REWARD_QUOTIENT: 32
|
||||||
WHISTLEBLOWING_REWARD_QUOTIENT: 512
|
WHISTLEBLOWING_REWARD_QUOTIENT: 512
|
||||||
# 2**3 (= 8)
|
# 2**3 (= 8)
|
||||||
PROPOSER_REWARD_QUOTIENT: 8
|
PROPOSER_REWARD_QUOTIENT: 8
|
||||||
# 2**24 (= 16,777,216)
|
# 2**25 (= 33,554,432)
|
||||||
INACTIVITY_PENALTY_QUOTIENT: 16777216
|
INACTIVITY_PENALTY_QUOTIENT: 33554432
|
||||||
|
# 2**5 (= 32)
|
||||||
|
MIN_SLASHING_PENALTY_QUOTIENT: 32
|
||||||
|
|
||||||
|
|
||||||
# Max operations per block
|
# Max operations per block
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# 2**5 (= 32)
|
|
||||||
MIN_PENALTY_QUOTIENT: 32
|
|
||||||
# 2**4 (= 16)
|
# 2**4 (= 16)
|
||||||
MAX_PROPOSER_SLASHINGS: 16
|
MAX_PROPOSER_SLASHINGS: 16
|
||||||
# 2**0 (= 1)
|
# 2**0 (= 1)
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
# [customized] Just 8 shards for testing purposes
|
# [customized] Just 8 shards for testing purposes
|
||||||
SHARD_COUNT: 8
|
SHARD_COUNT: 8
|
||||||
|
|
||||||
# [customized] unsecure, but fast
|
# [customized] unsecure, but fast
|
||||||
TARGET_COMMITTEE_SIZE: 4
|
TARGET_COMMITTEE_SIZE: 4
|
||||||
# 2**12 (= 4,096)
|
# 2**12 (= 4,096)
|
||||||
|
@ -15,6 +14,8 @@ MAX_INDICES_PER_ATTESTATION: 4096
|
||||||
MIN_PER_EPOCH_CHURN_LIMIT: 4
|
MIN_PER_EPOCH_CHURN_LIMIT: 4
|
||||||
# 2**16 (= 65,536)
|
# 2**16 (= 65,536)
|
||||||
CHURN_LIMIT_QUOTIENT: 65536
|
CHURN_LIMIT_QUOTIENT: 65536
|
||||||
|
# Normalizes base rewards
|
||||||
|
BASE_REWARDS_PER_EPOCH: 5
|
||||||
# [customized] Faster, but unsecure.
|
# [customized] Faster, but unsecure.
|
||||||
SHUFFLE_ROUND_COUNT: 10
|
SHUFFLE_ROUND_COUNT: 10
|
||||||
|
|
||||||
|
@ -36,7 +37,7 @@ MAX_EFFECTIVE_BALANCE: 32000000000
|
||||||
# 2**4 * 10**9 (= 16,000,000,000) Gwei
|
# 2**4 * 10**9 (= 16,000,000,000) Gwei
|
||||||
EJECTION_BALANCE: 16000000000
|
EJECTION_BALANCE: 16000000000
|
||||||
# 2**0 * 10**9 (= 1,000,000,000) Gwei
|
# 2**0 * 10**9 (= 1,000,000,000) Gwei
|
||||||
HIGH_BALANCE_INCREMENT: 1000000000
|
EFFECTIVE_BALANCE_INCREMENT: 1000000000
|
||||||
|
|
||||||
|
|
||||||
# Initial values
|
# Initial values
|
||||||
|
@ -71,6 +72,8 @@ MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256
|
||||||
PERSISTENT_COMMITTEE_PERIOD: 2048
|
PERSISTENT_COMMITTEE_PERIOD: 2048
|
||||||
# 2**6 (= 64) epochs ~7 hours
|
# 2**6 (= 64) epochs ~7 hours
|
||||||
MAX_CROSSLINK_EPOCHS: 64
|
MAX_CROSSLINK_EPOCHS: 64
|
||||||
|
# 2**2 (= 4) epochs 25.6 minutes
|
||||||
|
MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4
|
||||||
|
|
||||||
|
|
||||||
# State list lengths
|
# State list lengths
|
||||||
|
@ -91,14 +94,14 @@ BASE_REWARD_QUOTIENT: 32
|
||||||
WHISTLEBLOWING_REWARD_QUOTIENT: 512
|
WHISTLEBLOWING_REWARD_QUOTIENT: 512
|
||||||
# 2**3 (= 8)
|
# 2**3 (= 8)
|
||||||
PROPOSER_REWARD_QUOTIENT: 8
|
PROPOSER_REWARD_QUOTIENT: 8
|
||||||
# 2**24 (= 16,777,216)
|
# 2**25 (= 33,554,432)
|
||||||
INACTIVITY_PENALTY_QUOTIENT: 16777216
|
INACTIVITY_PENALTY_QUOTIENT: 33554432
|
||||||
|
# 2**5 (= 32)
|
||||||
|
MIN_SLASHING_PENALTY_QUOTIENT: 32
|
||||||
|
|
||||||
|
|
||||||
# Max operations per block
|
# Max operations per block
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# 2**5 (= 32)
|
|
||||||
MIN_PENALTY_QUOTIENT: 32
|
|
||||||
# 2**4 (= 16)
|
# 2**4 (= 16)
|
||||||
MAX_PROPOSER_SLASHINGS: 16
|
MAX_PROPOSER_SLASHINGS: 16
|
||||||
# 2**0 (= 1)
|
# 2**0 (= 1)
|
||||||
|
|
|
@ -77,7 +77,7 @@ def build_deposit_for_index(initial_validator_count: int, index: int) -> Tuple[s
|
||||||
keys.pubkeys[index],
|
keys.pubkeys[index],
|
||||||
keys.withdrawal_creds[index],
|
keys.withdrawal_creds[index],
|
||||||
keys.privkeys[index],
|
keys.privkeys[index],
|
||||||
spec.MAX_DEPOSIT_AMOUNT,
|
spec.MAX_EFFECTIVE_BALANCE,
|
||||||
)
|
)
|
||||||
|
|
||||||
state.latest_eth1_data.deposit_root = get_merkle_root(tuple(deposit_data_leaves))
|
state.latest_eth1_data.deposit_root = get_merkle_root(tuple(deposit_data_leaves))
|
||||||
|
|
|
@ -26,7 +26,7 @@ def create_deposits(pubkeys: List[spec.BLSPubkey], withdrawal_cred: List[spec.By
|
||||||
spec.DepositData(
|
spec.DepositData(
|
||||||
pubkey=pubkeys[i],
|
pubkey=pubkeys[i],
|
||||||
withdrawal_credentials=spec.BLS_WITHDRAWAL_PREFIX_BYTE + withdrawal_cred[i][1:],
|
withdrawal_credentials=spec.BLS_WITHDRAWAL_PREFIX_BYTE + withdrawal_cred[i][1:],
|
||||||
amount=spec.MAX_DEPOSIT_AMOUNT,
|
amount=spec.MAX_EFFECTIVE_BALANCE,
|
||||||
proof_of_possession=proof_of_possession,
|
proof_of_possession=proof_of_possession,
|
||||||
) for i in range(len(pubkeys))
|
) for i in range(len(pubkeys))
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue