Member
Статус: Не в сети Регистрация: 11.06.2011 Откуда: Россия
Добрый день, если у кого есть опыт в этом деле поделитесь, помогите разобраться ? Есть исходники https://github.com/iquidus/explorer Все это я ставлю на Ubuntu 14.04 Если по инструкции с исходниками то я поставил node.js >= v0.10.28, npm >= 1.4.9, mongodb 3.0.7
Requires node.js >= 0.10.28 mongodb 2.6.x *coind - это я так понимаю демон кошелька
Все это я установил ну и естественно сам BlockExplorer Все запустил демон работает синхронизируется, mongodb тоже работает А вот когда ставлю BlockExplorer и начинаю ставить модули узлов ($ cd explorer && npm install --production) То у меня под конец вот такие ошибки выскакивают:
Код:
npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/amdefine
gyp_main.py: error: no such option: --no-parallel gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 2 gyp ERR! stack at ChildProcess.onCpExit (/home/ubuntu/.nvm/v0.10.28/lib/node _modules/npm/node_modules/node-gyp/lib/configure.js:340:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807: 12) gyp ERR! System Linux 3.19.0-32-generic gyp ERR! command "node" "/home/ubuntu/.nvm/v0.10.28/lib/node_modules/npm/node_mo dules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ubuntu/explorer/node_modules/mongoose/node_modules/mongodb/no de_modules/mongodb-core/node_modules/kerberos gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok debug@0.7.4 node_modules/debug
static-favicon@1.0.2 node_modules/static-favicon
[spoiler=]
Вложение:
модули узлов.png
После этого запускаю демона и базу mongodb и запускаю сам BlockExplorer, демон сихронизировался В консоле у меня вот такие ошибки после запуска BlockExplorer:
Код:
{ [Error: Method not found] code: -32601 } GET /api/getnetworkhashps 200 3ms - 39b GET /api/getconnectioncount 200 1ms - 1b GET /api/getblockcount 200 1ms - 6b GET /ext/summary 200 40ms - 117b GET /ext/getlasttxs/100/0.00000001?_=1446905136502 200 5ms - 11b GET / 304 421ms GET /themes/Slate/bootstrap.min.css 304 2ms GET /vendor/jqplot/jquery.jqplot.css 304 4ms GET /stylesheets/style.css 304 1ms GET /vendor/jqplot/plugins/jqplot.dateAxisRenderer.min.js 304 2ms GET /vendor/jqplot/plugins/jqplot.ohlcRenderer.min.js 304 2ms GET /vendor/jqplot/jquery.jqplot.min.js 304 1ms GET /vendor/jqplot/plugins/jqplot.highlighter.min.js 304 1ms GET /vendor/jqplot/plugins/jqplot.pieRenderer.min.js 304 3ms GET /vendor/jqplot/plugins/jqplot.barRenderer.min.js 304 4ms GET /vendor/jqplot/plugins/jqplot.categoryAxisRenderer.min.js 304 5ms GET /javascripts/chart.js 304 5ms GET /images/logo.png 304 0ms GET /api/getdifficulty 200 13ms - 70b { [Error: Method not found] code: -32601 } GET /api/getnetworkhashps 200 4ms - 39b GET /api/getconnectioncount 200 2ms - 1b GET /api/getblockcount 200 2ms - 6b GET /ext/summary 304 34ms GET /ext/getlasttxs/100/0.00000001?_=1446905138641 200 3ms - 11b GET /api/getdifficulty 200 13ms - 70b { [Error: Method not found] code: -32601 } GET /api/getnetworkhashps 200 1ms - 39b GET /api/getconnectioncount 200 1ms - 1b GET /api/getblockcount 200 1ms - 6b GET /ext/summary 200 24ms - 117b GET /ext/getlasttxs/100/0.00000001?_=1446905138642 200 2ms - 11b GET /ext/getlasttxs/100/0.00000001?_=1446905138643 200 2ms - 11b GET /api/getdifficulty 200 12ms - 70b { [Error: Method not found] code: -32601 } GET /api/getnetworkhashps 200 4ms - 39b GET /api/getconnectioncount 200 2ms - 1b GET /api/getblockcount 200 2ms - 6b GET /ext/summary 304 28ms GET /api/getdifficulty 200 12ms - 70b { [Error: Method not found] code: -32601 } GET /api/getnetworkhashps 200 2ms - 39b GET /api/getconnectioncount 200 1ms - 1b GET /api/getblockcount 200 1ms - 6b
Вложение:
Ошибка Метод не нашел.png
А в браузере вот такая вот картина: Я так понимаю что у меня база данных пустая нету в ней блоков ?
Вложение:
Браузер.png
В Latest Transactions Все пусто А должно быть так:
Вложение:
Браузер-2.png
Конфиг файл в BlockExplorer следующий
Код:
/* This file must be valid JSON. But comments are allowed
Please edit settings.json, not settings.json.template */ { // name your instance! "title": "IQUIDUS",
"address": "127.0.0.1:3001",
// coin name "coin": "Darkcoin",
// coin symbol "symbol": "DRK",
// logo "logo": "/images/logo.png",
// favicon "favicon": "public/favicon.ico",
// Uses bootswatch themes (http://bootswatch.com/) // Valid options: // Cerulean, Cosmo, Cyborg, Darkly, Flatly, Journal, Lumen, Paper, // Readable, Sandstone, Simplex, Slate, Spacelab, Superhero, United, Yeti // theme (see /public/themes for available themes) "theme": "Cyborg",
//heavy (enable/disable additional heavy features) "heavy": false,
//amount of txs to index per address (stores latest n txs) "txcount": 100,
//show total sent & received on address page (set false if PoS) "show_sent_received": true,
// how to calculate current coin supply // COINBASE : total sent from coinbase (PoW) // GETINFO : retreive from getinfo api call (PoS) // HEAVY: retreive from heavys getsupply api call // BALANCES : total of all address balances "supply": "BALANCES",
// how to acquire network hashrate // getnetworkhashps: uses getnetworkhashps api call, returns in GH/s // netmhashps: uses getmininginfo.netmhashpsm returns in MH/s "nethash": "getnetworkhashps",
// Address labels // example : "JhbrvAmM7kNpwA6wD5KoAsbtikLWWMNPcM": {"label": "This is a burn address", "type":"danger", "url":"http://example.com"} // label (required) = test to display // type (optional) = class of label, valid types: default, primary, warning, danger, success // url (optional) = url to link to for more information "labels": { // "JSoEdU717hvz8KQVq2HfcqV9A79Wihzusu": {"label": "Developers address", "type":"primary", "url":"http://example.com"}, // "JSWVXHWeYNknPdG9uDrcBoZHztKMFCsndw": {"label": "Cryptsy"} } }
Может я в конфиге не все настроил ? -------------------- Здесь я естественно подставил данные от своей базы // database settings (MongoDB) "dbsettings": { "user": "iquidus", "password": "3xp!0reR", "database": "explorerdb", "address": "localhost", "port": 27017 -------------------- Здесь я тоже все свое подставил от демона // wallet settings "wallet": { "host": "localhost", "port": 9332, "user": "darkcoinrpc", "pass": "123gfjk3R3pCCVjHtbRde2s5kzdf233sa" -------------------- // confirmations "confirmations": 40, - Здесь я не знаю что ставить. -------------------- // index page (valid options for difficulty are POW or POS) "index": { "show_hashrate": true, "difficulty": "POW", "last_txs": 100 - Здесь я тоже не знаю что ставить. -------------------- // ensure links on API page are valid "api": { "blockindex": 1337, "blockhash": "1733320247b15ca2262be646397d1ffd6be953fa638ebb8f5dcbb4c2b91b34f1", - Здесь я тоже не знаю что ставить. "txhash": "f270cd3813254c9922a2e222a56ba745842d9112223a1394062e460b33d27b7e", - Здесь я тоже не знаю что ставить. "address": "RBiXWscC63Jdn1GfDtRj8hgv4Q6Zppvpwb" - Тут адрес кошелька своего сгенерированного из демона ? -------------------- //genesis "genesis_tx": "65f705d2f385dc85763a317b3ec000063003d6b039546af5d8195a5ec27ae410", - Здесь я тоже не знаю что ставить. "genesis_block": "b2926a56ca64e0cd2430347e383f63ad7092f406088b9b86d6d68c2a34baef51", - Здесь я тоже не знаю что ставить. -------------------- //amount of txs to index per address (stores latest n txs) "txcount": 100, - Здесь я тоже не знаю что ставить. -------------------- // how to calculate current coin supply // COINBASE : total sent from coinbase (PoW) // GETINFO : retreive from getinfo api call (PoS) // HEAVY: retreive from heavys getsupply api call // BALANCES : total of all address balances "supply": "BALANCES", - Здесь подставляем значение от от демона COINBASE : total sent from coinbase (PoW) или GETINFO : retreive from getinfo api call (PoS) -------------------- Как получить из демона все эти параметры которые я описал выше те которые я не знаю что ставить ? Какие то команды должны быть или это брать из исходников, тогда из каких файлов ?
За помощь буду очень благодарен !
У вас нет необходимых прав для просмотра вложений в этом сообщении. _________________ i7 2600K/Zalman 10X/ASROCK Z68 EXTREME4/Corsair XMS3 DDR3-8Гб/SSD Crucial 256Gb/ST31500341AS 1.5Тб/Cooler Master HAF 922/Chieftec BPS-850C/LG BH10LS30
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения