#!/bin/sh

#NODE_GRPC_ADDR="unix://./node-server-grpc.sock"
cmpd  --home /cmp/node$ID/ start --pruning=nothing --rpc.unsafe --log_level  "consensus:debug,metaversegraph:debug,main:info,state:info,x/distribution:info" --rpc.laddr "tcp://0.0.0.0:26657"  --trace >>  /cmp/node$ID/cmpd.log  2>&1 &
#cmpd --home /cmp/node$ID/ start  --log_level "*:debug" --rpc.laddr "tcp://0.0.0.0:26657"  --trace  >  /cmp/node$ID/cmpd.log 2>&1 &
ln  -s  /cmp/node$ID/     ~/.cmpd
ln  -s  /cmp/clicfg      ~/.cmpcli
# ln  -s  /cmp/node$ID/     ~/cmpd
# ln  -s  /cmp/clicfg      ~/cmpcli

sleep 5
cmpcli rest-server --laddr "tcp://localhost:8545"  --chain-id "200812" --trace  >  /cmp/node$ID/cmpcli.log &
tail -f /dev/null
# cmpcli rest-server --laddr "tcp://localhost:8545" --grpc-node unix://./node-server-grpc.sock --unlock-key mykey --chain-id 8888 --trace
