Create account

1643d · Member
Member Server is now available - https://github.com/memberapp/server
replied 1642d
Awesome, this is a big!
replied 1642d
A huge milestone!
replied 1642d
where might I get the info needed for config.keypem & config.certpem ?? Not sure I understand that
replied 1642d
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
replied 1642d
ahh, I do have that set to false.
So my issue is something different.
replied 1642d
What error are you getting?
replied 1642d
Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
replied 1642d
Try this option in your BCHD config -

; Use the following setting to disable TLS for the RPC server. NOTE: This
; option only works if the RPC server is bound to localhost interfaces
replied 1642d
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
replied 1642d
Hmm, looks like it is getting something unexpected back from the RPC call to the node.
replied 1642d
heya! So progress but not really!

Processing Block Into SQL:525471
buffer.js:232
throw new ERR_INVALID_ARG_TYPE(
replied 1642d
Can we try some debugging -

Add this line at line 338 of index.js
`
function takeBlockHexTransactionsAndPutThemInTheDB(hex) {
console.log(hex + "\n");
var block = bitcoinJs.
replied 1641d
test code
`
function takeBlockHexTransactionsAndPutThemInTheDB(hex) {
console.log(hex + "\n");
var block = bitcoinJs.Block.fromHex(hex);`
replied 1642d
ew, wait, the formatting on that is no good -

> function takeBlockHexTransactionsAndPutThemInTheDB(hex) {
console.log(hex);
var block = bitcoinJs.Block.fromHex(hex);
replied 1642d
yup!
/home/jettscythe/Documents/server/index.js:233
console.log(hex + "\n"); var block = bitcoinJs.Block.fromHex(hex);
^

SyntaxError:
replied 1642d
Sorry, the formatting messed up the code line a little - change it to

console.log(hex);
replied 1642d
Alright! Output is now:

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
replied 1642d
Ok, so it looks like your node is returning JSON when Member is expecting a string - how is this option set on your BCHD config?

; Mirror some JSON-RPC quirks of Bitcoin Core -- NOTE:
replied 1642d
just default commented out.
replied 1642d
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
replied 1642d
I'm not sure of any other way to run it. I've always called with just ./bchd or since downloading from the aur just bchd works lol
replied 1642d
Ok, I have a new theory, can you try, on line 325, change

rpc.getBlock(ret.result, false, processBlockIntoDB);

to

rpc.getBlock(ret.result, 0, processBlockIntoDB);

(you can remove
replied 1642d
done! Now we get:

Processing Block Into SQL:525471
{ code: -8,
message:
'Failed to parse request: parameter #2 \'verbose\' must be type bool (got number)' }
Wait 0 seconds
replied 1642d
ok, let's try
rpc.getBlock(ret.result, "", processBlockIntoDB);
replied 1642d
now we get the same typeerror as before
replied 1642d
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
replied 1642d
@0.8.1
I've updated the package.json with the required version numbers.

Try downloading and running again.
replied 1642d
Heading to bed now but will give it another go in the am! Thank you for all your hard work. :)
replied 1642d
Ok, and thanks for you help with debugging. I'll see you in the morning!
replied 1641d
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';.

sin
replied 1641d
Good morning! Ok - let try, in package.json file, change
"bitcoinjs-lib" : ">=3.3.2"

to

"bitcoinjs-lib" : "3.3.2"
replied 1641d
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
replied 1641d
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
replied 1641d
hours.
replied 1641d
https://memo.cash/a/8f10828b45

Still some minor issues.
For example, clicking a notification just leads to perpetual loading rather than serving up the post / reply / etc/
replied 1641d
Good to hear.

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
replied 1641d
updated & working!
replied 1641d
onfig.js file from

utxoServer = "https://rest.bitcoin.com/v2/";

to

utxoServer = "http://127.0.0.1:3123/v2/";

Then reload the client, and click on your balance to see if it grabs
replied 1641d
the utxos from your local node.
replied 1641d
ohp... working now. Just had to restart it I guess lol.
On restart I do get handshake errors still, but seems like I have main functionality.
replied 1641d
Looks about halfway done now.
replied 1641d
cessing Block Into SQL:534600
SQL processing queue:712
Processing Block Into SQL:534601
SQL processing queue:723
Processing Block Into SQL:534602
SQL processing queue:781
Processing
replied 1641d
Block Into SQL:534603
SQL processing queue:784
Processing Block Into SQL:534604
"
replied 1641d
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.
replied 1641d
js:489
var address = bitcoinJs.ECPair.fromPublicKeyBuffer(chunksIn[1]).getAddress();
^

TypeError: bitcoinJs.ECPair.fromPublicKeyBuffer is not a
replied 1641d
function
at getFirstSendingAddressFromTX (/home/jettscythe/Documents/server/sqlforaction.js:489:34)
at Object.sqlforaction.getSQLForAction (/home/jettscythe/Documents/server/s
replied 1641d
qlforaction.js:165:26)
at getSQLForTRX (/home/jettscythe/Documents/server/index.js:375:25)
at putSingleTransactionIntoSQLglobalvars (/home/jettscythe/Documents/server/index.js:
replied 1641d
511:19)
at putSingleTransactionIntoSQLglobalvarsResult (/home/jettscythe/Documents/server/index.js:505:5)
at Array.map (<anonymous>)
at processMempoolTX (/home/jettscythe/D
replied 1641d
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
replied 1641d
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
replied 1641d
node I also see: "http: TLS handshake error from 127.0.0.1:35608: EOF" still occurring
replied 1642d
repeating until I stop it
replied 1642d
the previous console.log line we added)
replied 1642d
JSON. I'm going to update Member so that it can handle both, but a workaround may be not running BCHD as a service.
replied 1642d
Discouraged unless
; interoperability issues need to be worked around
; rpcquirks=1
replied 1642d
3123
Processing Block Into SQL:525471
{ hash:
'00000000000000000141cee8b35c2307be6cb9a0ee8fc8c6fe1432f0c6bf7451',
confirmations: 88205,
size: 39825,
height: 525471,
replied 1642d
version: 536870912,
versionHex: '20000000',
merkleroot:
'f3c38d52ebee46107aebae41e98870e71454aeffb82daffaf4beb6b1eab1278f',
time: 1523492137,
nonce: 3085302306,
bits:
replied 1642d
'1802ff36',
difficulty: 366875220341.0291,
previousblockhash:
'00000000000000000038ed6feac53a17ee450d8deffb7186fd8d187975c09048',
nextblockhash:
'000000000000000000c6b5f74
replied 1642d
396cf71bb8a4f1e4d252f3b0bd8c65828bd06f3',
tx:
[ '0fbf80247609f915218fd3e8dc7ccef185af31bedbfcab381c0b73560f8b4a12',
'8c612be2201eb498330bb3c73ec699a4545fdbf91d70dbbca977fbb62
replied 1642d
5a11539',
'fdd6eab07b2a5f76ca9ca1d9ecffafc7219b4558f3772a714adae10d0bb91a70',
'3dd0344c777441436b3812dcd8344c70a108f1cec7385e2497e378349bbd4717',
'83ff5f61ec2100817358b2
replied 1642d
5f8b418def9b3008e90b23721b47dd0f340502cf43',
'741d5da8bd90400fc47a99e35a9cf6db77fcaa8a9e0a942581a4b6552bfa1f4c',
'47bf79d09d77fc0f4d5c521636a8cae870a2d9c6089db67fef1a7b57e045
replied 1642d
82b4',
'e423bb8a0f5523f4f4daae8a2e373b2224bc982d744f071676b24d082f376993',
'9ef5738e5563316f7925c6137de34db6252722b92ee411962590cfc88ce28f37',
'1cd11e682b8291341bad77990
replied 1642d
ccea74123af70653f57834422b68a7312ad6e0e',
'48383c2ba5723deff2da99efcb04f84c81fdfb869a80678db2e4f5a8348bea3e',
'b1e67ae0f2e8acafe532b0a1ef72f9eda8a625c1a82e338ed68dfbb7202ef76
replied 1642d
f',
'167bab264c97f2af1fa037f0064e567b8b3f9189fea1bb59077f69899466fae3',
'f960fc6f6b0f6f47d19f41fd650c38b3f40d3c5ac1038933fc140505bf472e29',
'0a3248957fe7611f69bea80a4093
replied 1642d
59fbcb7616e5e3fadc0a57244242619a7c3c',
'029b56eda12da092388acf362906dbba8f67a196cd016edd37b72199e3ac5547',
'145b5dbcf276a8617a950f341ea75a068115ec028d438798cef0df18327b7b0d',
replied 1642d
'1209db48111ee7f69ee2e26470182ffdd32009312fd2895045e00f89e826648d',
'061e0097a6bc52408f650259f9561cbea0a02ea008ebaa397db3909b06bb4986',
'b973362d696ab5175120ed99f4fdbe3
replied 1642d
c5b004c19a9975bde73fd47192639d3c4',
'2edae00b1d12b9449c2478b32b968e222c50a2af806ba64d4a6d1fd249567ed8',
'b5152322946b4960a2311de08192346d9c6b4db617959ba9d7a4b28e00c7a1c3',
replied 1642d
'96aea5f69e7d380768a487a5f7699410d8f795b4d95768233bb7ad651bca4dbc',
'c5fd02325903de6ea4c4cf8c0a9e11817798aef1002729d69a01597085db6c14',
'a2754d3cb73deaa6e3cc3ad14253f0423c
replied 1642d
6a1371752fd23685a6991c101ee7fb',
'be6670a35c54ec93d5f78d6a8f73fe2d0a607e22fdbe9a261fc97b35ede985b0',
'28e332a8de2ef744ab6af55fd9f34be22c8473914b12d725c6732308feb03f86',
replied 1642d
'3181cf91ccd34436d3477dbe6dad2e02f75382e6c9aba5686dc13d739879c464',
'4b5fde703116dc7e1c7b0fa92bcce3f523f71f70a4c15e22b47dce2506153e84',
'd9adbcfd2e97e182d6c6136b06daf13ebc12
replied 1642d
58d156ed5836a37cbd08cfd70597',
'593ae5b278724575e7fa2de95044404d0d019654b144a56310a5c63a4306c6c2',
'e78be55c954ccf73c3051334d63f06244d53e7d7913ccabb15fc0f4b1aca30cc',
replied 1642d
'a4a8ca12bbf675f0b2dce1973c43fbbe51ce3c7802d231cf6d59c40a669def89',
'7f1602af3cea2226bd8bf33583f15c3dd2c2cf3094163250eee1b2462e19389e',
'f530ed0cbb8535da4913e702a071645aa4c5
replied 1642d
b511e1c1b08094e51e3c2a537710',
'c8f110acdbfdcb26e7517834c76a61494f36de4d0f479db5f841808156b9b74c',
'9f6fa32435b3e1b5a55a336ae7b7af474e9e4f7660725872db638d227f68f1ab',
replied 1642d
'0450a2321b4adc6defba82889efe5efb74903b88a70cb70eb1e9187322e96a92',
'da1e8b636a15532e54bc005eb2e612fc6f792901bd2c46b263d81084bc45598a',
'7e17810111e189db411bc5cb034fcaeadcbe
replied 1642d
c1ac80a0ceda4356c93737adc75f',
'e528972e11ba8bdb35a86f826355c28f8c8634c4961e83d19cc829e1d93d414c',
'726ae0e4d6b535433a06db8d24d5640c68a946a63a534a8e57d9513834691ee0',
replied 1642d
'441ebf1ec5f30577b81c25f60dfca9c6e3b7d59eb4e53b49caccbe1855f563ef',
'd092d56eccc92b2fd5b904ebe01fc916d19d735df0948162b51a5ccfe558f9ee',
'afb731eb223171347f20900cbe7837a1f7d2
replied 1642d
7255358109f2f4ceec602e62f835',
'157a360c042a9be8c2c8167c765844f41b13564eb86dbc4e77baaad2fa261102',
'258ecf50cf99c533c6890369d2252c86052e7bba1fd469633d762042b325a706',
replied 1642d
'bc819390fd6233e3d670ad7d9b43ef091875ecfeac069f83fb1708f9fc051f6e',
'4a23d39d2d282fdee23135979746bd1556ed002eeee93254c2b25bad9e3e6890',
'1bbc7de9ab235cc1d8e484c92a5482358721
replied 1642d
1833f04deab0f159901f21779c47',
'c183f006ceb5f48e96ed721fff0644032f0ad3f5f93cc9000751c74c1fb27fab',
'70093dd0f91d01aff71c8e2dc814b53327edaaca51f0d4abe3cec92e5c7edf32',
replied 1642d
'ff8453cd85dab1b7c730733d13cbb7bc9f3b44a455b2954c7128348939b9497c',
'a6c781f0fc136c507e328319db2099556cb545ed966d9cb856b6a9a915758386',
'ee87f982b25b87b9817e5b74efa97399ba44
replied 1642d
f6fa4bc9495242ac3748862a6d40',
'a0597dbed25915f0d3803b33d31dd42fa5eac49e0065bfc5429adc5248b3a8b0',
'68eefbef45222a3eb06c83a15c0ed5fda8876bddcc8ba251bcd1f9953a937f36',
replied 1642d
'edde671d8ad4a05680725d32cbed5c02114b53a3003f52c836930dbd47a03bf0',
'0c5980ae1a7a743a8bb69f2bef16610b4a285faeaafa69a8ae6deb94ad59a8a5',
'f95390bde0401997c477636002189bae461c
replied 1642d
cf3ab197dc830dd4a0c63d6d9210',
'be94e4bea9398ff1be8312b603f6d6c896dc314d3c16ecb4c998f5fcc586dd3e',
'1e39c7e348ab0a31c1ddb301e3f5001af3c5f315d49f7eafa7ec1efd887ab5fe',
replied 1642d
'f8defb8d8f72bda1fd61a8ca155adda368e6281eaa933c8a86fb9fae93b3d244',
'19eca0bbff65f1a11b4e0bb90c7b3202ad6e403de871f174104f6e72a31fd6e9',
'42cb9a4b45978b3914aff7cbcc21e922a727
replied 1642d
46c9ff740102f827466ffeb658f1',
'e6b360697a9249e52ad18b136881915cb4cd94d471abd81078c34034272aa3ec',
'bacf820d37eb17775a11c97c42ba77fb3075552d86f4514600d20721ce0e973a',
replied 1642d
'1f1e8feebaa8099b958894a2bde2094350322239e11cd53ca01842c9e8b6c54d',
'09658a1a8735c417c75bb55f5338e883edcb97c59bb92ae3b44e1224d9f95b62',
'5fd83411a20fa948c173503509af39910061
replied 1642d
4ce913805bbbdd6b8720608ba8f3',
'6aa8b2490bff65ad33d4c176d1d0aad7584b9989dc97fd013731c8dfaad3c95c',
'2037a1d023d96a8a9ba1cf5e891c2b723be154877c92651afe1a7cb4913bbf11',
replied 1642d
'47f5b805c5f72d1615e395e2e8a3590d5c4057d7a3f148c123a5f8bfc243f9f8',
'e6762ea1d0ef8d91f4dc4c7f7367fe3bba7a245ef5330dc7a91c43155b32ee42',
'5c42ef520b278b7586dfaa0b109249487cf7
replied 1642d
7bf520ea43766774f83870757bf6',
'16adbbdf3b5dd7ce3444f778c7695d5ddb17d658aaa5366d9f7c4cf953a008c6',
'6c541e817dd579a79041038fd12a80aa7c8020bbac49efecce81c34d108e82ed',
replied 1642d
'f1b3d579c0626c0c05304415e5332b4b0eb550f2c942a5e8348c79424f999503',
'89f85f595e19cfe490cd458fde09a89608ee6839268d65c7d792184acc21ac2e',
'69c120c672023b136302ae4489387d943359
replied 1642d
c76ba399b3ff9d07004a3af66489',
'e3af9695aafad7dc090afb303d16bf0db2f6570f5d7bf0569e8e56a0cad84a41',
'976a78e30c564ef9ad42ebc9aa4d506920d6701a537f6409534f51bfdf073618',
replied 1642d
'8aa6b00ad6d1d38a0a288f9089ea9712de2d88f76634cc9b375e294c4d7415b2',
'04f7f1695c81dbfea7c432ba27833140621ee2c383caca4ac1cc888778ad0ee3',
'a12b2f759971eb4fc369381d80797e6a5e26
replied 1642d
d54f86fcbc326acf1fb2fab55dfd',
'da414b43caadf81f006eedaaf96e8b7733ad8a32086a0c9c3967096bb5865322',
'1ad50281de334e4b8f30244f50d5f0b4758a244bcbf0c32eccc7bb9f7842ae02',
replied 1642d
'd83f78e903aea82a4c152aa1e8435fdfd08901876b8e11bc65fdaabe21627549',
'725117d949648b34bf0afe0e8da9a827c5abd5b612263b0601dcb77867ef6a75',
'782af744b4bfe9d68215818eba67fac7b6c8
replied 1642d
a5d2e93e4ef6124f6b912b7f8985',
'e4b4312ac79d1bd93c690cffb58ca894dfa421cc59e7a65d12b274b5493fb788',
'058e55ccead6f653e05f9c817f25a378aa268d4e7a2c6ed9cce22d0b910cd7c7',
replied 1642d
'd030946ff38b39d954cc416d88c48546a2926d47fc8cb885d1d78bdf5ee375dc',
'3efad800704d7083c18f826f3c1f4c8d2379c085e442b316ca99b778ce918ddf',
'0308c936ebe4481a6857b5c4b15447c63e45
replied 1642d
a2c7c993312a32b86d064b9b92f6',
'086cce072034f298dc15bdb6ff4d9b15ac64a22e7f3a21eed1b9398a392b4692',
'1afe8573a9e04f18e8080de68234d512fdf4ced241fb66acf9f83ea199fba033',
replied 1642d
'94fbaa9cff83ba2794bcf771718af2af6e10deca60f782093341e311b3fcfc1e',
'c1cf0f5752415c17e579d266703aaf753a520d6809080875d7ebb27c5068d834',
'bfbee0b83b88aa256f58ba2525dd89567b91
replied 1642d
a5b4cac971ee8a904a8123e1a23f',
... 8 more items ] }
buffer.js:232
throw new ERR_INVALID_ARG_TYPE(
^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type
replied 1642d
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
replied 1642d
odules/bitcoinjs-lib/src/block.js:77:36)
at takeBlockHexTransactionsAndPutThemInTheDB (/home/jettscythe/Documents/server/index.js:339:33)
at processBlockIntoDB (/home/jettscyth
replied 1642d
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
replied 1642d
(events.js:203:15)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
replied 1642d
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
replied 1642d
(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
replied 1642d
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)
replied 1642d
Block.fromHex(hex);
`
replied 1642d
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
replied 1642d
I can't run the compiled binary at all.
After editing the config, marking as executable and running in terminal I get:

./member-linux
(node:31241) UnhandledPromiseRejectionWarning:
replied 1642d
Ok, thanks, I need to look at why the packager is missing that dependency. It's unrelated to the other issue, so best to ignore the binary for now.
replied 1642d
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
replied 1642d
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
replied 1642d
(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.
replied 1642d
_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
replied 1642d
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
replied 1642d
p.js:1261:22)
at Object.Module._extensions..js (module.js:662:10)
at Module.load (module.js:564:32)
(node:31241) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
replied 1642d
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
replied 1642d
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
replied 1642d
exit code.
replied 1642d
version thing.
replied 1642d
I'm going to delete my memberserver folder and start over. Maybe I messed up too far down the rabbit hole lol
replied 1642d
SQL:525471
buffer.js:232
throw new ERR_INVALID_ARG_TYPE(
^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or
replied 1642d
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
replied 1642d
b/src/block.js:77:36)
at takeBlockHexTransactionsAndPutThemInTheDB (/home/jettscythe/Documents/memberserver/server-master/index.js:338:33)
at processBlockIntoDB (/home/jettscyt
replied 1642d
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
replied 1642d
: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)
replied 1642d
(which is
; the default).
notls=1
replied 1642d
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
replied 1642d
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',

either both on https or
replied 1642d
both on http
replied 1643d
What operations you do on the server?
replied 1643d
It processes Memo transactions into a database. It also starts a http/s server to respond to requests from the Member client.
replied 1643d
That's good, do you sign the transaction in the browser or in the server?
replied 1643d
The client signs the transaction in the browser. Client sends it to the server, server sends it to the node.
replied 1643d
I see, I guess with bitbox you can directly send from browser but it will go to the bitcoin.com rest public API first 🤔
replied 1643d
Sure, it's a configurable option in the client actually. You can separately specify your content, utxo and TX broadcast server.
replied 1643d
Yes but AFAIK bitbox can't broadcast to a JSON RPC server. It should be a REST server which talk to a JSON RPC internally. They open sourced it.