Hi all, I'm pretty new to the BitCoin world and to BitCoinJS but I know JS pretty well.
I downloaded BitCoinJS and tried to run bitcoinjs run --testnet --bchdbg, but it said I needed some setting.js file, so I took the one in the /daemon folder, which is sort of an example. I modified it inserting my data for my miner account on a pool (Slush's) and set some variables, then saved it somewhere and re-run the command, and I received this output:
3 Jan 17:41:07.025 - info: Loading configuration
3 Jan 17:41:07.045 - info: Initializing LevelDB (leveldb:///home/mypath/.bitcoinjs/leveldb/)
3 Jan 17:41:07.046 - info: LevelDB: Database loaded (rev. 1.0)
3 Jan 17:41:07.292 - info: Trying to detect local Bitcoin node (connect="auto")
3 Jan 17:41:07.292 - info: Connecting to peer localhost:18333
3 Jan 17:41:07.304 - info: Connection refused for localhost:18333
3 Jan 17:41:07.304 - info: Disconnected from peer localhost:18333
3 Jan 17:41:07.304 - info: No local proxy, connecting to network instead (connect="auto")
events.js:68
throw arguments[1]; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL
at errnoException (net.js:769:11)
at Server._listen2 (net.js:892:19)
at listen (net.js:936:10)
at Server.listen (net.js:993:9)
at asyncCallback (dns.js:67:16)
at Object.onanswer [as oncomplete] (dns.js:120:9)
What does that mean? I'm just trying to use this node app as a miner, to test performance and stuff, but apparently I can't even set it to work properly. I searched a bit for settings.js files as examples to run a simple miner but I couldn't find any.
Can somebody help me? Pointing to a settings.js file would suffice! I just need to copypaste that and insert my data I guess.
Thanks