RunTheNumbers icon indicating copy to clipboard operation
RunTheNumbers copied to clipboard

Unexpected operator error

Open calkob opened this issue 5 years ago • 4 comments

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.

calkob avatar Aug 27 '20 15:08 calkob

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.

BashCo avatar Aug 28 '20 19:08 BashCo

I do have RPC credentials set in Bitcoin.conf. could it be anything to do with the fact its a Tor node?

calkob avatar Aug 29 '20 15:08 calkob

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"

btcschellingpt avatar Aug 30 '20 11:08 btcschellingpt

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

calkob avatar Aug 30 '20 11:08 calkob