If you're running a https server, you'll already have those files. For the desktop, it runs http by default and you don't need them. leave httpsserverenabled=false
node index.js Sleeping for 1 seconds to give mysql/rpc time to come up. DEV: try starting bchdgrpc Try starting httpserver HTTP server running on port 3123 Processing Block Into
Ok, so I'm researching it, and I think what's happening is that when BCHD is run as a service it might return JSON for the RPC, and when not running as a service it does not return
Processing Block Into SQL:525471 { code: -8, message: 'Failed to parse request: parameter #2 \'verbose\' must be type bool (got number)' } Wait 0 seconds
Ok, thanks for your patience - I think I've gotten to the bottom of it. I've been using [email protected] and there seems to be an incompatibility with the latest version bitcoind-rpc
Good morning! So with the most recent download, I edited the config to have my username & password, as well as config.bchdgrpcenabled = true; config.bchdhost = '127.0.0.1:8335';.
seems to be working! Still getting a handshake error now and then but the output rn looks like: "SQL processing queue:485 Processing Block Into SQL:534599 SQL processing queue:656 Pro
That's great! It looks like it is working. It acquires a lock on the db while processing history so you won't be able to run any queries on it until it is up to date - it'll take a few
One other setting you might want to change - the client uses bitbox as a utxo server by default. You can test the utxo server functionality by changing the /release/js/c
ce all indexes and grpc is enabled on my node. Running node index.js Fetched And Processed Upto Block 613740 however, I got the error: "/home/jettscythe/Documents/server/sqlforaction.
function at getFirstSendingAddressFromTX (/home/jettscythe/Documents/server/sqlforaction.js:489:34) at Object.sqlforaction.getSQLForAction (/home/jettscythe/Documents/server/s
qlforaction.js:165:26) at getSQLForTRX (/home/jettscythe/Documents/server/index.js:375:25) at putSingleTransactionIntoSQLglobalvars (/home/jettscythe/Documents/server/index.js:
511:19) at putSingleTransactionIntoSQLglobalvarsResult (/home/jettscythe/Documents/server/index.js:505:5) at Array.map (<anonymous>) at processMempoolTX (/home/jettscythe/D
ocuments/server/index.js:500:12) at /home/jettscythe/Documents/server/index.js:482:51 at IncomingMessage.<anonymous> (/home/jettscythe/Documents/server/node_modules/bitcoind-rp
c/lib/index.js:107:7) at IncomingMessage.emit (events.js:203:15)" The entire time. I run log into member server, but the feed just says: "Something is wrong:Error." On my BCHD
string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object at Function.from (buffer.js:232:9) at Function.fromHex (/home/jettscythe/Documents/server/node_m
odules/bitcoinjs-lib/src/block.js:77:36) at takeBlockHexTransactionsAndPutThemInTheDB (/home/jettscythe/Documents/server/index.js:339:33) at processBlockIntoDB (/home/jettscyth
e/Documents/server/index.js:334:5) at IncomingMessage.<anonymous> (/home/jettscythe/Documents/server/node_modules/bitcoind-rpc/lib/index.js:133:7) at IncomingMessage.emit
Unexpected token & at Module._compile (internal/modules/cjs/loader.js:721:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load
(internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at
Function.Module.runMain (internal/modules/cjs/loader.js:829:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Hmmm - that looks like the same error again! Does the compiled binary give the same error? If so, then I guess it's an RPC comms thing, if not then I guess it's a nodejs library
Error: Cannot find module '/snapshot/Cash/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node' 1) If you want to compile the package/file into executable, please pay
attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem
(likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath. at Function.Module._resolveFilename (module.js:546:15) at Function.Module.
_resolveFilename (pkg/prelude/bootstrap.js:1287:46) at Function.Module._load (module.js:473:25) at Module.require (module.js:595:17) at Module.require (pkg/prelude/bootstra
p.js:1166:31) at require (internal/module.js:11:18) at Object.<anonymous> (/snapshot/Cash/node_modules/sqlite3/lib/sqlite3.js:4:15) at Module._compile (pkg/prelude/bootstra
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:3124
1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero
Array-like Object. Received type object at Function.from (buffer.js:232:9) at Function.fromHex (/home/jettscythe/Documents/memberserver/server-master/node_modules/bitcoinjs-li
b/src/block.js:77:36) at takeBlockHexTransactionsAndPutThemInTheDB (/home/jettscythe/Documents/memberserver/server-master/index.js:338:33) at processBlockIntoDB (/home/jettscyt
he/Documents/memberserver/server-master/index.js:334:5) at IncomingMessage.<anonymous> (/home/jettscythe/Documents/memberserver/server-master/node_modules/bitcoind-rpc/lib/index.js
:133:7) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1129:12) at process._tickCallback (internal/process/next_tick.js:63:19)
done, and a new error. :/ Sleeping for 1 seconds to give mysql/rpc time to come up. DEV: try starting bchdgrpc Try starting httpserver HTTP server running on port 3123
So it might be the rpc connection to BCHD node is failing - make sure your node protocol matches the config protocol - config.rpcconfig = { protocol: 'http',