jb55 / node-bitcoin

zero-dependency bitcoin core rpc lib for nodejs
The Unlicense
45 stars 127 forks source link

Blockchain sync #13

Closed ghost closed 12 years ago

ghost commented 12 years ago

I was wondering if there was a way to detect when the block chain is in sync or updating. Every time I make a command with bitcoind updating the blockchain, I am getting an error when using node-bitcoin.

{ [Error: Invalid params, response status code: 401] code: -32602 }

Thanks

freewil commented 12 years ago

Are you able to successfully make an RPC call when the chain is up-to-date? If the server is sending a response code of 401 then that probably means that your username/password is being rejected by the server or your IP address is not being allowed.