mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
Remove Explicit Declaration of Repeated Demo Config Values (#1209)
This commit is contained in:
parent
2c2b30fa3a
commit
fc97243bbd
@ -129,42 +129,42 @@ var defaultBeaconConfig = &BeaconChainConfig{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var demoBeaconConfig = &BeaconChainConfig{
|
var demoBeaconConfig = &BeaconChainConfig{
|
||||||
ZeroBalanceValidatorTTL: 4194304,
|
ZeroBalanceValidatorTTL: defaultBeaconConfig.ZeroBalanceValidatorTTL,
|
||||||
LatestRandaoMixesLength: 8192,
|
LatestRandaoMixesLength: defaultBeaconConfig.LatestRandaoMixesLength,
|
||||||
LatestBlockRootsLength: 8192,
|
LatestBlockRootsLength: defaultBeaconConfig.LatestBlockRootsLength,
|
||||||
MaxExits: 16,
|
MaxExits: defaultBeaconConfig.MaxExits,
|
||||||
MaxAttestations: 128,
|
MaxAttestations: defaultBeaconConfig.MaxAttestations,
|
||||||
MaxProposerSlashings: 16,
|
MaxProposerSlashings: defaultBeaconConfig.MaxProposerSlashings,
|
||||||
MaxCasperSlashings: 16,
|
MaxCasperSlashings: defaultBeaconConfig.MaxCasperSlashings,
|
||||||
ShardCount: 5,
|
ShardCount: 5,
|
||||||
MaxDeposit: 32,
|
MaxDeposit: defaultBeaconConfig.MaxDeposit,
|
||||||
MinTopUpSize: 1,
|
MinTopUpSize: defaultBeaconConfig.MinTopUpSize,
|
||||||
MinOnlineDepositSize: 16,
|
MinOnlineDepositSize: defaultBeaconConfig.MinOnlineDepositSize,
|
||||||
Gwei: 1e9,
|
Gwei: defaultBeaconConfig.Gwei,
|
||||||
MaxDepositInGwei: 32 * 1e9,
|
MaxDepositInGwei: defaultBeaconConfig.MaxDepositInGwei,
|
||||||
DepositsForChainStart: 16384,
|
DepositsForChainStart: defaultBeaconConfig.DepositsForChainStart,
|
||||||
TargetCommitteeSize: uint64(3),
|
TargetCommitteeSize: uint64(3),
|
||||||
SlotDuration: uint64(2),
|
SlotDuration: uint64(2),
|
||||||
CycleLength: uint64(5),
|
CycleLength: uint64(5),
|
||||||
MinValidatorSetChangeInterval: uint64(15),
|
MinValidatorSetChangeInterval: uint64(15),
|
||||||
MinAttestationInclusionDelay: uint64(4),
|
MinAttestationInclusionDelay: defaultBeaconConfig.MinAttestationInclusionDelay,
|
||||||
SqrtExpDropTime: uint64(65536),
|
SqrtExpDropTime: defaultBeaconConfig.SqrtExpDropTime,
|
||||||
MinWithdrawalPeriod: uint64(20),
|
MinWithdrawalPeriod: uint64(20),
|
||||||
WithdrawalsPerCycle: uint64(2),
|
WithdrawalsPerCycle: uint64(2),
|
||||||
BaseRewardQuotient: defaultBeaconConfig.BaseRewardQuotient,
|
BaseRewardQuotient: defaultBeaconConfig.BaseRewardQuotient,
|
||||||
MaxValidatorChurnQuotient: uint64(32),
|
MaxValidatorChurnQuotient: defaultBeaconConfig.MaxValidatorChurnQuotient,
|
||||||
InitialForkVersion: 0,
|
InitialForkVersion: defaultBeaconConfig.InitialForkVersion,
|
||||||
InitialSlotNumber: 0,
|
InitialSlotNumber: defaultBeaconConfig.InitialSlotNumber,
|
||||||
RandBytes: 3,
|
RandBytes: defaultBeaconConfig.RandBytes,
|
||||||
InitialForkSlot: defaultBeaconConfig.InitialForkSlot,
|
InitialForkSlot: defaultBeaconConfig.InitialForkSlot,
|
||||||
SimulatedBlockRandao: [32]byte{'S', 'I', 'M', 'U', 'L', 'A', 'T', 'E', 'R'},
|
SimulatedBlockRandao: [32]byte{'S', 'I', 'M', 'U', 'L', 'A', 'T', 'E', 'R'},
|
||||||
SyncPollingInterval: 2 * 4, // Query nodes over the network every 4 slots for sync status.
|
SyncPollingInterval: 2 * 4, // Query nodes over the network every 4 slots for sync status.
|
||||||
GenesisTime: time.Now(),
|
GenesisTime: time.Now(),
|
||||||
MaxNumLog2Validators: 24,
|
MaxNumLog2Validators: defaultBeaconConfig.MaxNumLog2Validators,
|
||||||
EpochLength: defaultBeaconConfig.EpochLength,
|
EpochLength: defaultBeaconConfig.EpochLength,
|
||||||
PowReceiptRootVotingPeriod: defaultBeaconConfig.PowReceiptRootVotingPeriod,
|
PowReceiptRootVotingPeriod: defaultBeaconConfig.PowReceiptRootVotingPeriod,
|
||||||
InactivityPenaltyQuotient: defaultBeaconConfig.InactivityPenaltyQuotient,
|
InactivityPenaltyQuotient: defaultBeaconConfig.InactivityPenaltyQuotient,
|
||||||
ZeroHash: [32]byte{},
|
ZeroHash: defaultBeaconConfig.ZeroHash,
|
||||||
EmptySignature: makeEmptySignature(),
|
EmptySignature: makeEmptySignature(),
|
||||||
CollectivePenaltyCalculationPeriod: defaultBeaconConfig.CollectivePenaltyCalculationPeriod,
|
CollectivePenaltyCalculationPeriod: defaultBeaconConfig.CollectivePenaltyCalculationPeriod,
|
||||||
IncluderRewardQuotient: defaultBeaconConfig.IncluderRewardQuotient,
|
IncluderRewardQuotient: defaultBeaconConfig.IncluderRewardQuotient,
|
||||||
|
Loading…
Reference in New Issue
Block a user