rzmahmood / ethereum-pos-testnet

💻⛓️ A Quick and Easy Way to Bootstrap your own Local Ethereum PoS Testnet. Great for testing consensus ⛓️💻
MIT License
46 stars 25 forks source link

prysmctl testnet generate-genesis with --deposit-json-file #8

Open artjoma opened 1 year ago

artjoma commented 1 year ago

I try to use prysmctl with deposit-json-file, but process crashed. May be somebody knows how to this this issue ?

+ ./dependencies/prysm/out/prysmctl testnet generate-genesis --fork=capella --num-validators=2 --deposit-json-file=./staking_deposit-cli/validator_keys/deposit_data-1697028676.json --chain-config-file=./config.yml --geth-genesis-json-in=./genesis.json --output-ssz=./network/genesis.ssz --geth-genesis-json-out=./network/genesis.json
INFO[0000] Specified a chain config file: ./config.yml   prefix=genesis
INFO[0000] No genesis time specified, defaulting to now()  prefix=genesis
INFO[0000] reading deposits from JSON at /home/art/dev/go_workspace/ethereum-pos-testnet/staking_deposit-cli/validator_keys/deposit_data-1697028676.json  prefix=genesis
INFO[0000] setting fork geth times                       prefix=genesis shanghai=0xc000835be8
panic: runtime error: integer divide by zero

goroutine 1 [running]:
github.com/prysmaticlabs/prysm/v4/consensus-types/primitives.ValidatorIndex.Mod(...)
        /home/art/dev/eth-custom/testnet/ethereum-pos-testnet/dependencies/prysm/consensus-types/primitives/validator.go:39
github.com/prysmaticlabs/prysm/v4/beacon-chain/core/altair.NextSyncCommitteeIndices({0x21bdd70, 0xc0000560e0}, {0x21e64b8?, 0xc0008b58c0})