INSIGHT_NETWORK=livenet BITCOIND_HOST=localhost BITCOIND_PORT=9337 BITCOIND_P2P_PORT=9338 INSIGHT_PORT=3000 INSIGHT_FORCE_RPC_SYNC=1 npm start
Tak startuje api, uruchamia się tak:
> insight-bitcore-api@0.2.13 start /home/polcoin/api
> node insight.js
____ _ __ __ ___ _
/ _/___ _____(_)___ _/ /_ / /_ / | ____ (_)
/ // __ \/ ___/ / __ `/ __ \/ __/ / /| | / __ \/ /
_/ // / / (__ ) / /_/ / / / / /_ / ___ |/ /_/ / /
/___/_/ /_/____/_/\__, /_/ /_/\__/ /_/ |_/ .___/_/
/____/ /_/
v0.2.13
info: insight server listening on port 3000 in development mode
info: Bitcoin Core version 1040000
info: Using RPC sync
info: Resuming sync from block: 0000000000018fe66d4b7a859724ad2296bd3b8ad98b23e216664ba8bf5af6c7 #414739
info: Got 414739 blocks in current DB, out of 414745 block at bitcoind
info: syncing from RPC (slow)
info: Starting from: 0000000000018fe66d4b7a859724ad2296bd3b8ad98b23e216664ba8bf5af6c7
info: status: [99.999%]
info: NEW TIP: 0000000000018fe66d4b7a859724ad2296bd3b8ad98b23e216664ba8bf5af6c7 NEED REORG (old tip: 0000000000018fe66d4b7a859724ad2296bd3b8ad98b23e216664ba8bf5af6c7 #414739)
info: Reorg Case 1) OldNext: 0000000000018fe66d4b7a859724ad2296bd3b8ad98b23e216664ba8bf5af6c7 NewHeight: 414739
info: Unconfirming 1 Txs
info: status: [99.999%]
info: status: [100%]
{ '0': 'connecting to localhost:9338' }
{ '0': 'connected to localhost:9338' }
Zmieniłem merkleroot wg tego co podopowiedziałeś.
Ścieżkę dałem następującą
var dataDir = '/home/polcoin/.polcoin/';
Efekt, bez zmian.