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

bug with minimal genesis preset: SynCommitteeBits length expected 64 #14249

Open
0xys opened this issue Jul 21, 2024 · 1 comment
Open

bug with minimal genesis preset: SynCommitteeBits length expected 64 #14249

0xys opened this issue Jul 21, 2024 · 1 comment
Labels
Bug Something isn't working custom devnet custom chains

Comments

@0xys
Copy link

0xys commented Jul 21, 2024

Describe the bug

I built prysmctl with minimal build tag to test generating private net genesis.

go build -tags minimal -o prysmctl ./cmd/prysmctl

but the following command fails, with the error log as provided.

./prysmctl testnet generate-genesis --fork=capella --num-validators=64 --genesis-time-delay=15 --output-ssz=genesis.ssz --chain-config-file=my_minimal_config.yml

Probably due to the hardcoded bit length of 64 here. (must be 4 = 32/8 for minimal preset)

if size := len(s.SyncCommitteeBits); size != 64 {
err = ssz.ErrBytesLengthFn("--.SyncCommitteeBits", size, 64)
return
}

Has this worked before in a previous version?

No response

🔬 Minimal Reproduction

my config is

CONFIG_NAME: minimal
PRESET_BASE: minimal

# Genesis
GENESIS_FORK_VERSION: 0x20000089

# Altair
ALTAIR_FORK_EPOCH: 0
ALTAIR_FORK_VERSION: 0x20000090

# Merge
BELLATRIX_FORK_EPOCH: 0
BELLATRIX_FORK_VERSION: 0x20000091
TERMINAL_TOTAL_DIFFICULTY: 0

# Capella
CAPELLA_FORK_EPOCH: 0
CAPELLA_FORK_VERSION: 0x20000092
MAX_WITHDRAWALS_PER_PAYLOAD: 16

DENEB_FORK_VERSION: 0x20000093

# Time parameters
SECONDS_PER_SLOT: 12
SLOTS_PER_EPOCH: 6

# Deposit contract
DEPOSIT_CONTRACT_ADDRESS: 0x4242424242424242424242424242424242424242

Error

FATA[0000] Could not generate beacon chain genesis state  error="could not generate genesis state: could not hash tree root empty block body: --.SyncCommitteeBits (bytes array does not have the correct length): expected 64 and 4 found" prefix=genesis


### Platform(s)

Mac (Apple Silicon)

### What version of Prysm are you running? (Which release)

v5.0.4

### Anything else relevant (validator index / public key)?

_No response_
@0xys 0xys added the Bug Something isn't working label Jul 21, 2024
@james-prysm james-prysm added the custom devnet custom chains label Jul 24, 2024
@james-prysm
Copy link
Contributor

you'll need to build with bazel in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working custom devnet custom chains
Projects
None yet
Development

No branches or pull requests

2 participants