forked from TrueCloudLab/frostfs-dev-env
[#120] bin: Support notary disabled workflow for helper commands
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
59b103b9a5
commit
a011d6701d
3 changed files with 23 additions and 5 deletions
|
@ -21,7 +21,11 @@ VALUE="${2}"
|
|||
[ -z "$VALUE" ] && echo "Empty config value" && exit 1
|
||||
|
||||
# Internal variables
|
||||
ADDR=`cat ${WALLET} | jq -r .accounts[2].address`
|
||||
if [[ -z "${NEOFS_NOTARY_DISABLED}" ]]; then
|
||||
ADDR=`cat ${WALLET} | jq -r .accounts[2].address`
|
||||
else
|
||||
ADDR=`cat ${WALLET} | jq -r .accounts[0].address`
|
||||
fi
|
||||
|
||||
# Change config value in side chain
|
||||
echo "Changing ${KEY} configration value to ${VALUE}"
|
||||
|
|
|
@ -18,7 +18,11 @@ WALLET_IMG="${WALLET_IMG:-wallets/node-wallet.json}"
|
|||
PASSWD="one"
|
||||
|
||||
# Internal variables
|
||||
ADDR=`cat ${WALLET} | jq -r .accounts[2].address`
|
||||
if [[ -z "${NEOFS_NOTARY_DISABLED}" ]]; then
|
||||
ADDR=`cat ${WALLET} | jq -r .accounts[2].address`
|
||||
else
|
||||
ADDR=`cat ${WALLET} | jq -r .accounts[0].address`
|
||||
fi
|
||||
|
||||
# Fetch current epoch value
|
||||
EPOCH=`${NEOGO_NONINTERACTIVE} contract testinvokefunction -r \
|
||||
|
|
|
@ -45,9 +45,19 @@ Chain dump without notary service does not have predefined network map.
|
|||
Therefore, you need to wait about 5 minutes until new epoch tick with updated
|
||||
network map.
|
||||
|
||||
All helper commands such as `make tick.epoch` or `make update.epoch_duration`
|
||||
are designed as multisignature transactions, so you can't use them without
|
||||
notary.
|
||||
|
||||
4. Enable helper commands
|
||||
|
||||
To enable helper commands such as `make tick.epoch` or `make update.epoch_duration`
|
||||
make sure to export non-empty `NEOFS_NOTARY_DISABLED` environment variable.
|
||||
```
|
||||
$ export NEOFS_NOTARY_DISABLED=1
|
||||
```
|
||||
|
||||
Use `unset` command to return it back.
|
||||
```
|
||||
$ unset NEOFS_NOTARY_DISABLED
|
||||
```
|
||||
|
||||
# Enable notary service in main chain
|
||||
|
||||
|
|
Loading…
Reference in a new issue