-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Describe the bug
prysmctl panics with these input files:
config.yaml:
CONFIG_NAME: crywell-testnet # A unique name for your testnet.
PRESET_BASE: interop # A simplified preset for testing.
SECONDS_PER_SLOT: 6 # Time between blocks. Mainnet is 12 seconds.
SLOTS_PER_EPOCH: 4 # Number of slots in an epoch. Mainnet is 32.
GENESIS_FORK_VERSION: 0x1a2b3c4d
ALTAIR_FORK_EPOCH: 0
ALTAIR_FORK_VERSION: 0x00000002
BELLATRIX_FORK_EPOCH: 0
BELLATRIX_FORK_VERSION: 0x00000003
CAPELLA_FORK_EPOCH: 0
CAPELLA_FORK_VERSION: 0x00000004
DENEB_FORK_EPOCH: 0
DENEB_FORK_VERSION: 0x00000005
ELECTRA_FORK_EPOCH: 0
ELECTRA_FORK_VERSION: 0x00000005
FULU_FORK_EPOCH: 0
FULU_FORK_VERSION: 0x00000007
TERMINAL_TOTAL_DIFFICULTY: 0
TERMINAL_BLOCK_HASH: 0x0000000000000000000000000000000000000000000000000000000000000000
TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH: 0
DEPOSIT_CONTRACT_ADDRESS: 0xbCF1A7543Ed877Bc12D18C326176DD679EB029bb
DEPOSIT_CHAIN_ID: 2448
genesis.json:
{
"config": {
"chainId": 2448,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"terminalTotalDifficulty": 1,
"ethash": {}
},
"difficulty": "1",
"gasLimit": "8000000",
"alloc": {
"0xbCF1A7543Ed877Bc12D18C326176DD679EB029bb": {
"balance": "100000000000000000000000000"
},
"0xcB34872B9DC80E8b76306BE0Be9690f8D4bdCA85": {
"balance": "1000000"
}
}
}
This is what I run:
prysmctl testnet generate-genesis \
--fork fulu \
--chain-config-file beacon_config.yaml \
--num-validators 1 \
--genesis-time-delay 600 \
--geth-genesis-json-in genesis.json \
--geth-genesis-json-out genesis_o.json \
--output-ssz genesis.ssz
This is the output:
INFO[0000] Specified a chain config file: beacon_config.yaml prefix=genesis
INFO[0000] No genesis time specified, defaulting to now() prefix=genesis
INFO[0000] Delaying genesis 1757597138 by 600 seconds prefix=genesis
INFO[0000] Genesis is now 1757597738 prefix=genesis
INFO[0000] Setting fork geth times cancun=1757597738 prague=1757597738 prefix=genesis shanghai=1757597738
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x10 pc=0x104c2a08c]
goroutine 1 [running]:
math/big.(*Int).Bytes(0x0)
/opt/homebrew/Cellar/go/1.25.1/libexec/src/math/big/int.go:531 +0x1c
github.com/OffchainLabs/prysm/v6/runtime/interop.(*PremineGenesisConfig).setExecutionPayload(0x1400051cdc8?, {0x106866040, 0x1400051cdc8})
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/runtime/interop/premine-state.go:643 +0xb38
github.com/OffchainLabs/prysm/v6/runtime/interop.(*PremineGenesisConfig).populate(0x140003e2a00, {0x106866040, 0x1400051cdc8})
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/runtime/interop/premine-state.go:319 +0x3a0
github.com/OffchainLabs/prysm/v6/runtime/interop.(*PremineGenesisConfig).prepare(0x140003e2a00, {0x106835440, 0x107b226e0})
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/runtime/interop/premine-state.go:81 +0x74
github.com/OffchainLabs/prysm/v6/runtime/interop.NewPreminedGenesis({0x106835440, 0x107b226e0}, {0x1400067b000?, 0x40a?, 0x107aef5c0?}, 0x1, 0x0, 0x6, 0x1400078ac60, {0x14000729270, ...})
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/runtime/interop/premine-state.go:64 +0x100
github.com/OffchainLabs/prysm/v6/cmd/prysmctl/testnet.generateGenesis({0x106835440, 0x107b226e0})
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/cmd/prysmctl/testnet/generate_genesis.go:300 +0x900
github.com/OffchainLabs/prysm/v6/cmd/prysmctl/testnet.cliActionGenerateGenesisState(0x14000421140)
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/cmd/prysmctl/testnet/generate_genesis.go:172 +0x13c
github.com/OffchainLabs/prysm/v6/cmd/prysmctl/testnet.init.func1(0x14000421140?)
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/cmd/prysmctl/testnet/generate_genesis.go:69 +0x24
github.com/urfave/cli/v2.(*Command).Run(0x107ac0500, 0x14000421140, {0x1400056e4b0, 0xf, 0xf})
/Users/johnwells/gopath/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:276 +0x580
github.com/urfave/cli/v2.(*Command).Run(0x107ac0660, 0x14000421080, {0x14000734900, 0x10, 0x10})
/Users/johnwells/gopath/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:269 +0x774
github.com/urfave/cli/v2.(*Command).Run(0x14000434dc0, 0x14000420fc0, {0x140001be6c0, 0x11, 0x12})
/Users/johnwells/gopath/pkg/mod/github.com/urfave/cli/v2@v2.27.5/command.go:269 +0x774
github.com/urfave/cli/v2.(*App).RunContext(0x14000648400, {0x106835440, 0x107b226e0}, {0x140001be6c0, 0x11, 0x12})
/Users/johnwells/gopath/pkg/mod/github.com/urfave/cli/v2@v2.27.5/app.go:333 +0x4c8
github.com/urfave/cli/v2.(*App).Run(...)
/Users/johnwells/gopath/pkg/mod/github.com/urfave/cli/v2@v2.27.5/app.go:307
main.main()
/Users/johnwells/gopath/src/github.com/OffchainLabs/prysm/cmd/prysmctl/main.go:22 +0x7c
Has this worked before in a previous version?
I don't knkow
🔬 Minimal Reproduction
No response
Error
Platform(s)
Mac (Apple Silicon)
What version of Prysm are you running? (Which release)
No response
Anything else relevant (validator index / public key)?
No response