Closed cloud8little closed 3 months ago
Please show results for exocored tendermint show-validator --home node2
Please show results for
exocored tendermint show-validator --home node2
PS D:\ExocorePrivate\.tmp-exocored> exocored tendermint show-validator --home node2/
{"@type":"/cosmos.crypto.ed25519.PubKey","key":"XLtFCK0/nB1xExSXEhH5kaxRte3aIXSGaBfWSeNOtpE="}
Can you escape the results of exocored tendermint show-validator
in the exocored tx operator set-cons-key
? The shell you are using does not like the quotes or the braces. I don't have a Windows machine, so the below is untested but in my opinion it will work. If it does not, I can spin up a VM and investigate further.
@echo off
setlocal enabledelayedexpansion
:: Capture the JSON output
for /f "tokens=*" %%i in ('exocored tendermint show-validator --home node2') do set jsonOutput=%%i
:: Escape the JSON string
set "escapedJson=%jsonOutput:"=\"%"
:: Run the command with the escaped JSON string
exocored tx operator set-cons-key exocoretestnet_233-2 %escapedJson% --from newoperator1 --keyring-backend test --home node2
endlocal
Alternatively, here's a powershell script.
# Capture the JSON output
$jsonOutput = exocored tendermint show-validator --home node2
# Escape the JSON string
$escapedJson = $jsonOutput -replace '"', '\"'
# Run the command with the escaped JSON string
exocored tx operator set-cons-key exocoretestnet_233-2 $escapedJson --from newoperator1 --keyring-backend test --home node2
Can you escape the results of
exocored tendermint show-validator
in theexocored tx operator set-cons-key
? The shell you are using does not like the quotes or the braces. I don't have a Windows machine, so the below is untested but in my opinion it will work. If it does not, I can spin up a VM and investigate further.@echo off setlocal enabledelayedexpansion :: Capture the JSON output for /f "tokens=*" %%i in ('exocored tendermint show-validator --home node2') do set jsonOutput=%%i :: Escape the JSON string set "escapedJson=%jsonOutput:"=\"%" :: Run the command with the escaped JSON string exocored tx operator set-cons-key exocoretestnet_233-2 %escapedJson% --from newoperator1 --keyring-backend test --home node2 endlocal
Alternatively, here's a powershell script.
# Capture the JSON output $jsonOutput = exocored tendermint show-validator --home node2 # Escape the JSON string $escapedJson = $jsonOutput -replace '"', '\"' # Run the command with the escaped JSON string exocored tx operator set-cons-key exocoretestnet_233-2 $escapedJson --from newoperator1 --keyring-backend test --home node2
It's good to set public key in this way. or just directly use this command:
exocored.exe tx operator set-cons-key exocoretestnet_233-2 exocored.exe tx operator set-cons-key exocoretestnet_233-2 '{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"XLtFCK0/nB1xExSXEhH5kaxRte3aIXSGaBfWSeNOtpE=\"}' --from newoperator1 --keyring-backend test --home node2 --gas-prices 7aexo
Summary of Bug
Version
v1.0.0
Steps to Reproduce
Screenshots
Additional context
For Admin Use