You need to sign in or sign up before continuing.
DAL/CLI: Add aliases for consistency with doc/other binaries
What
Add a -E
alias for --endpoint
and a --operator-profiles
for --operator
.
Why
-E
is for consistency with the other octez binaries, which have it.
--operator-profiles
is both for consistency with the naming of other profile options which allow both the name with and without --profiles
and for consistency with octez documentation which presents this option.
How
Simply by adding a name in the list of names associated to respective option.
Manually testing the MR
After launching an octez node with:
# Cleaning
rm -r ~/.tezos-node/
# Select network
./octez-node config init --network ghostnet
# Use snapshot
wget -O snapshot_file https://snapshots.eu.tzinit.org/ghostnet/rolling
./octez-node snapshot import snapshot_file
# Launch the node (The only step to repeat, if you launched a node a few minutes ago)
./octez-node run --rpc-addr 127.0.0.1:8732
One can now launch a DAL node with:
./octez-dal-node run --operator-profiles 1 --net-addr 0.0.0.0:11772 --rpc-addr 127.0.0.1:10772 -E http://localhost:8732
it is equivalent to:
./octez-dal-node run --producer 1 --net-addr 0.0.0.0:11772 --rpc-addr 127.0.0.1:10772 --endpoint http://localhost:8732