bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.85k stars 2.09k forks source link

Change MongoDB Host and port #2987

Open useryxyz opened 4 years ago

useryxyz commented 4 years ago

Hey I'm new to this, i followed the Introduction and created a bitcore.config.json. I didn't unterstand the second step "2. Setup Bitcoin Node" where should i write the config? Bitcore works without the original Bitcoin Core right? If i run "npm run node" I get the error {"name":"MongoNetworkError","message":"failed to connect to server [127.0.0.1:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]","errorLabels":["TransientTransactionError"],"level":"error"} because my MongoDB has a different IP (im running Bitcore in WSL and MongoDB on the Host Windows)

jackyxie commented 4 years ago
  1. Add file bitcore.config.json in the root directory of bitcore.
  2. setup env of DB_HOST=your.mongo.address
useryxyz commented 4 years ago
1. Add file bitcore.config.json in the root directory of bitcore.

2. setup env of DB_HOST=your.mongo.address

Thanks, now I'm getting: {"message":"2020-10-20 09:52:45.968 GMT+2 | Not connected to peer: 127.0.0.1:20008 | Chain: BTC | Network: mainnet","level":"warn"}

What should be on Port 20008?

jackyxie commented 4 years ago

You need to setup bitcoind service at the same port which bitcore.config.json specific

useryxyz commented 4 years ago

You need to setup bitcoind service at the same port which bitcore.config.json specific

Ah okay works now, he is syncing... I thought bitcore will create a own fullnode, without need of Bitcoin core. And what does syncing mean? Is he copying the whole blockchain from my bitcoin core?

jackyxie commented 3 years ago

You need to setup bitcoind service at the same port which bitcore.config.json specific

Ah okay works now, he is syncing... I thought bitcore will create a own fullnode, without need of Bitcoin core. And what does syncing mean? Is he copying the whole blockchain from my bitcoin core?

yes, copying the whole blockchain data to mongodb.

giaki3003 commented 3 years ago

You need to setup bitcoind service at the same port which bitcore.config.json specific

Ah okay works now, he is syncing... I thought bitcore will create a own fullnode, without need of Bitcoin core. And what does syncing mean? Is he copying the whole blockchain from my bitcoin core?

Bitcore-node does indeed run its own independent node, although it requires "trusted" peers (one could just use the dns for that). Out of curiosity, I couldn't get my bitcore-node to sync, mind sharing which branch you used? (I tried from master)

SatoshiNakamotogmx commented 3 years ago

My node is 0-49. I also have a registered letter sent to my self with the Gen block and the white paper mailed to myself and never opened.. 😂. I can give you the evidence of my email hijacking and device and timestamp of when I was hijacked from P2P and when I said NOUR. Get rid of the mole

jackyxie commented 3 years ago

You need to setup bitcoind service at the same port which bitcore.config.json specific

Ah okay works now, he is syncing... I thought bitcore will create a own fullnode, without need of Bitcoin core. And what does syncing mean? Is he copying the whole blockchain from my bitcoin core?

Bitcore-node does indeed run its own independent node, although it requires "trusted" peers (one could just use the dns for that). Out of curiosity, I couldn't get my bitcore-node to sync, mind sharing which branch you used? (I tried from master)

Master branch is ok

SatoshiNakamotogmx commented 3 years ago

I know I can use my port and my node

On Dec 24, 2020 5:23 PM, "jackyxie" notifications@github.com wrote:

You need to setup bitcoind service at the same port which bitcore.config.json specific

Ah okay works now, he is syncing... I thought bitcore will create a own fullnode, without need of Bitcoin core. And what does syncing mean? Is he copying the whole blockchain from my bitcoin core?

Bitcore-node does indeed run its own independent node, although it requires "trusted" peers (one could just use the dns for that). Out of curiosity, I couldn't get my bitcore-node to sync, mind sharing which branch you used? (I tried from master)

Master branch is ok

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bitpay/bitcore/issues/2987#issuecomment-751141273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANL7CUTDKGY2HZDDQKBD5HLSWPSP7ANCNFSM4SWPELIA .

giaki3003 commented 3 years ago

You need to setup bitcoind service at the same port which bitcore.config.json specific

Ah okay works now, he is syncing... I thought bitcore will create a own fullnode, without need of Bitcoin core. And what does syncing mean? Is he copying the whole blockchain from my bitcoin core?

Bitcore-node does indeed run its own independent node, although it requires "trusted" peers (one could just use the dns for that). Out of curiosity, I couldn't get my bitcore-node to sync, mind sharing which branch you used? (I tried from master)

Master branch is ok

Master branch seems to be only working on mainnet for me. Regtest seems busted. Have you run insight on any regtest perhaps?