Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem with RPC call #20

Closed
5alamander opened this issue Apr 28, 2018 · 2 comments
Closed

A problem with RPC call #20

5alamander opened this issue Apr 28, 2018 · 2 comments

Comments

@5alamander
Copy link

5alamander commented Apr 28, 2018

my trezarcoin.conf in a vps is:

dns=1
daemon=1
server=1
listen=1
stakegen=1
logtimestamps=1
minersleep=2000
stakegen=1
stakemindepth=1000
stakemintime=72
stakecombine=400
stakesplit=800

port=17298
externalip=<myip>
rpcport=17299
rpcuser=<myusername>
rpcpassword=<mypassword>

addnode=162.217.249.198:17298
.............

when I call a method from my node-js program,
there was an error of connect ECONNREFUSED <myip>:17299

rpc.call('getinfo', [])
  .then(res => {
    console.log("res: " + res)
  })
  .catch(e => console.log("err: " + e))

Is there anything wrong with these configs?

@wellenreiter01
Copy link
Collaborator

An rpcallowip statement is missing

@aciddude
Copy link
Collaborator

An rpcallowip statement is missing

As @wellenreiter01 says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants