aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Devnet] Unable to connect to other fullnodes with static identity generated with Aptos CLI

Open xorgal opened this issue 2 years ago • 0 comments

Have tried to generate keys with Aptos CLI v0.2.1 and v0.2.2 to assign static identity to fullnode using:

aptos key generate --key-type x25519 --output-file private-key.txt (default encoding is hex so this option was not provided)
aptos key extract-peer  --private-key-file private-key.txt  --output-file peer-info.yaml

Both private key and network address are being generated using above commands with no issues but problem starts when fullnode is trying to connect to other peers.

Errors in logs says: Transport error: most probably fullnode rejected our handshake with no any successful connections seen.

It works well with no identity set in fullnode.yaml (when fullnode generates new keys on each startup) -- works well.

Then, another attempt was creating keys with aptos-operational-tool using:

aptos-operational-tool generate-key \
    --encoding hex \
    --key-type x25519 \
    --key-file private-key.txt

then

aptos-operational-tool extract-peer-from-file \
    --encoding hex \
    --key-file private-key.txt \
    --output-file peer-info.yaml

and starting fullnode with those keys -- works with no issues. No any errors in logs, 5 stable outbound connections right from start.

Fullnode image tag: devnet_7296f138e11113fab6a1e193fc3f18fa7d08bd3e

xorgal avatar Jul 30 '22 03:07 xorgal