You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run a public network using the docs here. In the step to generate a genesis and waypoint I am getting this error in the main, mainnet and testnet branches.
Running `target/debug/aptos genesis generate-genesis --local-repository-dir genesis`
Reading genesis/layout.yaml
Reading genesis/bob/owner.yaml
Reading genesis/bob/operator.yaml
thread 'main' panicked at aptos-move/vm-genesis/src/lib.rs:403:13:
Error calling genesis.initialize: (0x0) VMError with status NUMBER_OF_ARGUMENTS_MISMATCH at location UNDEFINED and message argument length mismatch: expected 12 got 13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I realise the docs are a bit outdated, I have documented my steps below.
Clone aptos repository
git clone git@github.com:aptos-labs/aptos-core.git
# change directory to aptos-corecd aptos-core
Docs here seem outdated for this part. Run the following instead:
## run these commands in the project root
cargo build --release --package aptos-framework
mkdir aptos-framework-release
find ./aptos-move/framework -path "*/bytecode_modules/*" -type f -exec cp {} aptos-framework-release/ \;
mkdir genesis
mkdir -p genesis/framework
cp aptos-framework-release/*.mv genesis/framework/
Generate your validator's keys
# run this in the project root
cargo run --package aptos -- genesis generate-keys --output-dir genesis/bobs
Generate your ValidatorConfiguration
# run this in the project root
cargo run --package aptos -- \
genesis set-validator-configuration \
--username bob \
--validator-host 154.159.238.25:6180 \
--owner-public-identity-file genesis/bobs/public-keys.yaml \
--local-repository-dir .# a directory called bob will be created# move the bob directory to the genesis folder
mv bob genesis
Generating a genesis and waypoint
## inside genesis folder## create root key
cargo run --package aptos -- key generate --key-type ed25519 --output-file root.key
## copy the public key
cat root.key.pub
Create a layout.yaml file in the genesis folder with ~/aptos-core/target/debug/aptos genesis generate-layout-template --output-file layout.yaml
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to run a public network using the docs here. In the step to generate a genesis and waypoint I am getting this error in the main, mainnet and testnet branches.
I realise the docs are a bit outdated, I have documented my steps below.
Clone aptos repository
Build from source
Follow instructions here Building Aptos From Source | Aptos Docs (en)
Build the aptos framework
Docs here seem outdated for this part. Run the following instead:
Generate your validator's keys
# run this in the project root cargo run --package aptos -- genesis generate-keys --output-dir genesis/bobs
Generate your ValidatorConfiguration
Generating a genesis and waypoint
layout.yaml
file in the genesis folder with~/aptos-core/target/debug/aptos genesis generate-layout-template --output-file layout.yaml
aptos
CLI to generate genesis and waypoint:I'll appreciate any help
Beta Was this translation helpful? Give feedback.
All reactions