Can we try some debugging -
Add this line at line 338 of index.js
`
function takeBlockHexTransactionsAndPutThemInTheDB(hex) {
console.log(hex + "\n");
var block = bitcoinJs.
yup! /home/jettscythe/Documents/server/index.js:233 console.log(hex + "\n"); var block = bitcoinJs.Block.fromHex(hex); ^
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)