Unexpected operator error
When running the script i get an unexpected operator after username, password and blockheight,
645560/645561: 1 blocks remaining runthenumbers.sh: 22: [: user**: unexpected operator runthenumbers.sh: 22: [: password**: unexpected operator runthenumbers.sh: 32: [: 645560: unexpected operator
Its does actually count down still to the target block but when reached it does this
runthenumbers.sh: 32: [: 645560: unexpected operator runthenumbers.sh: 22: [: 4PhazNaPZDeqdu87W: unexpected operator runthenumbers.sh: 22: [: user: unexpected operator runthenumbers.sh: 22: [: password**: unexpected operator runthenumbers.sh: 32: [: 645561: unexpected operator
It never calls gettxoutsetinfo.
I suspect the reason for this behavior may be because your node does not have RPC credentials set in the bitcoin.conf file. Please see Step 3 of the readme. You would need to restart your node after editing the bitcoin.conf file in order for changes to take effect.
I do have RPC credentials set in Bitcoin.conf. could it be anything to do with the fact its a Tor node?
Shouldn't be. Mine's a Tor node - however my script is connecting on the same network so not across Tor.
Just check your USERNAME and PASSWORD settings are encased in double quotes, correct? eg: from my script:
USERNAME="mynode"
Im connecting network also.
These are the lines that seem to be the problem. RPC details all check out
line 22: if [ "$USERNAME" == "user" ] || [ "$PASSWORD" == "password" ]; then
line 32 if [ "$CURRENT_BLOCK" == "$TARGET_BLOCK" ]; then