forked from TrueCloudLab/frostfs-dev-env
[#196] Remove -i
key in docker exec
in bin/resolve.sh
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
e904506e3d
commit
e2c169e440
2 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
source bin/helper.sh
|
source bin/helper.sh
|
||||||
|
|
||||||
# NeoGo binary path.
|
# NeoGo binary path.
|
||||||
NEOGO="${NEOGO:-docker exec -it morph_chain neo-go}"
|
NEOGO="${NEOGO:-docker exec -t morph_chain neo-go}"
|
||||||
# NNS contract script hash
|
# NNS contract script hash
|
||||||
output=$(curl -s --data '{ "id": 1, "jsonrpc": "2.0", "method": "getcontractstate", "params": [1] }' \
|
output=$(curl -s --data '{ "id": 1, "jsonrpc": "2.0", "method": "getcontractstate", "params": [1] }' \
|
||||||
"http://morph-chain.${LOCAL_DOMAIN}:30333/") \
|
"http://morph-chain.${LOCAL_DOMAIN}:30333/") \
|
||||||
|
|
|
@ -7,6 +7,7 @@ source bin/helper.sh
|
||||||
|
|
||||||
# NeoGo binary path.
|
# NeoGo binary path.
|
||||||
NEOGO="${NEOGO:-docker exec -it main_chain neo-go}"
|
NEOGO="${NEOGO:-docker exec -it main_chain neo-go}"
|
||||||
|
NEOGO_NONINTERACTIVE="${NEOGO_NONINTERACTIVE:-docker exec -t main_chain neo-go}"
|
||||||
|
|
||||||
# Wallet files to change config value
|
# Wallet files to change config value
|
||||||
WALLET="${WALLET:-services/chain/node-wallet.json}"
|
WALLET="${WALLET:-services/chain/node-wallet.json}"
|
||||||
|
@ -29,7 +30,7 @@ BLOCK_DURATION=$(grep SecondsPerBlock < "$SIDECHAIN_PROTO" | awk '{print $2}') \
|
||||||
NETMAP_ADDR=$(bin/resolve.sh netmap.neofs) || die "Cannot resolve netmap.neofs"
|
NETMAP_ADDR=$(bin/resolve.sh netmap.neofs) || die "Cannot resolve netmap.neofs"
|
||||||
|
|
||||||
# Fetch current epoch value
|
# Fetch current epoch value
|
||||||
EPOCH=$(${NEOGO} contract testinvokefunction \
|
EPOCH=$(${NEOGO_NONINTERACTIVE} contract testinvokefunction \
|
||||||
-r "http://morph-chain.${LOCAL_DOMAIN}:30333" "${NETMAP_ADDR}" epoch \
|
-r "http://morph-chain.${LOCAL_DOMAIN}:30333" "${NETMAP_ADDR}" epoch \
|
||||||
| grep 'value' | awk -F'"' '{ print $4 }') \
|
| grep 'value' | awk -F'"' '{ print $4 }') \
|
||||||
|| die "Cannot fetch epoch from netmap contract"
|
|| die "Cannot fetch epoch from netmap contract"
|
||||||
|
|
Loading…
Reference in a new issue