Git Product home page Git Product logo

explorer's Introduction

Iquidus Explorer - 1.7.4

An open source block explorer written in node.js.

See it in action

Note: If you would like your instance mentioned here contact me

Requires

  • node.js >= 8.17.0 (12.14.0 is advised for updated dependencies)
  • mongodb 4.2.x
  • *coind

Create database

Enter MongoDB cli:

$ mongo

Create databse:

> use explorerdb

Create user with read/write access:

> db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )

*Note: If you're using mongo shell 4.2.x, use the following to create your user:

> db.addUser( { user: "username", pwd: "password", roles: [ "readWrite"] })

Get the source

git clone https://github.com/iquidus/explorer explorer

Install node modules

cd explorer && npm install --production

Configure

cp ./settings.json.template ./settings.json

Make required changes in settings.json

Start Explorer

npm start

Note: mongod must be running to start the explorer

As of version 1.4.0 the explorer defaults to cluster mode, forking an instance of its process to each cpu core. This results in increased performance and stability. Load balancing gets automatically taken care of and any instances that for some reason die, will be restarted automatically. For testing/development (or if you just wish to) a single instance can be launched with

node --stack-size=10000 bin/instance

To stop the cluster you can use

npm stop

Syncing databases with the blockchain

sync.js (located in scripts/) is used for updating the local databases. This script must be called from the explorers root directory.

Usage: node scripts/sync.js [database] [mode]

database: (required)
index [mode] Main index: coin info/stats, transactions & addresses
market       Market data: summaries, orderbooks, trade history & chartdata

mode: (required for index database only)
update       Updates index from last sync to current block
check        checks index for (and adds) any missing transactions/addresses
reindex      Clears index then resyncs from genesis to current block

notes:
* 'current block' is the latest created block when script is executed.
* The market database only supports (& defaults to) reindex mode.
* If check mode finds missing data(ignoring new data since last sync),
  index_timeout in settings.json is set too low.

It is recommended to have this script launched via a cronjob at 1+ min intervals.

crontab

Example crontab; update index every minute and market data every 2 minutes

*/1 * * * * cd /path/to/explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
*/2 * * * * cd /path/to/explorer && /usr/bin/nodejs scripts/sync.js market > /dev/null 2>&1
*/5 * * * * cd /path/to/explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1

Wallet

Iquidus Explorer is intended to be generic, so it can be used with any wallet following the usual standards. The wallet must be running with atleast the following flags

-daemon -txindex

Security

Ensure mongodb is not exposed to the outside world via your mongo config or a firewall to prevent outside tampering of the indexed chain data.

Known Issues

script is already running.

If you receive this message when launching the sync script either a) a sync is currently in progress, or b) a previous sync was killed before it completed. If you are certian a sync is not in progress remove the index.pid and db_index.pid from the tmp folder in the explorer root directory.

rm tmp/index.pid
rm tmp/db_index.pid

exceeding stack size

RangeError: Maximum call stack size exceeded

Nodes default stack size may be too small to index addresses with many tx's. If you experience the above error while running sync.js the stack size needs to be increased.

To determine the default setting run

node --v8-options | grep -B0 -A1 stack_size

To run sync.js with a larger stack size launch with

node --stack-size=[SIZE] scripts/sync.js index update

Where [SIZE] is an integer higher than the default.

note: SIZE will depend on which blockchain you are using, you may need to play around a bit to find an optimal setting

License

Copyright (c) 2015, Iquidus Technology
Copyright (c) 2015, Luke Williams
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of Iquidus Technology nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

explorer's People

Contributors

amit177 avatar anarchistsprime avatar chey avatar dependabot[bot] avatar g1tman avatar ghobson2013 avatar iquidus avatar joeuhren avatar konez2k avatar krewshul avatar ksynb avatar lyoshenka avatar m-shahbaz avatar madcatmining avatar minkcrypto avatar mudjello avatar patrykwegrzyn avatar richarepo avatar rudy4682 avatar snyk-community avatar suriyaa avatar theholyroger avatar uaktags avatar udjinm6 avatar vdamas avatar vr2ualize avatar xcoredev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

explorer's Issues

TypeError: Cannot read property 'length' of undefined

Hi, I like this explorer and have been using it with SmartCoin.

I set it up again and after syncing fine and working, there is an error that happens when trying to do an 'index update' about 24 hours after the last update (without running a cron job).

The following error occurs:


TypeError: Cannot read property 'length' of undefined
    at /home/www/explorer/lib/database.js:622:36
    at Request._callback (/home/www/explorer/lib/explorer.js:106:14)
    at Request.self.callback (/home/www/explorer/node_modules/request/request.js:121:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/home/www/explorer/node_modules/request/request.js:985:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (/home/www/explorer/node_modules/request/request.js:936:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

cryptopia api

is it possible to get cryptopia.co.nz in markets also please.

Nethash incorrect

Hi there i got everything up and running im currently syncing the blocks into the database now. i noticed that the nethash is incorrect, currently thats because the coin im using is displayed in hashes / s rather than gh/s i've got a bit of experience coding but am not familiar with what was used. so i was looking for a few pointers to get on the right track.
http://infernopool.com:8080/

Does not update

We had this installed and the explorer did not update itself. It was clearly in touch with the network because you could search all the block heights after the point the explorer did not update its first page. That is, it stopped at block height 10000 (for example), but you could key in 10076 and get accurate results. I had a look around the internet and I believe it is mongodb issue (not sure, though). Has anyone had this issue and how was it solved?

Trying to reindex and getting error Script already running..

I have the script running from the crontab for index update and market. I have stopped the cronjobs and am trying to run the script for reindexing from the root folder of my explorer install by running:

node scripts/sync.js index reindex

but all it outputs is "Script already running.."

I have checked my server for sync.js running using ps aux | grep "sync.js" and there are no entries there.
So how do I stop the script from running so that I can reindex if I have already disabled it in the crontab?

BLOCK ZERO

It hasn't happened in the last 100 Blocks, but..
We were getting quite a few BLOCK ZERO blocks,
with a timestamp of: 1st Jan 1970 00:00:00

Such as this one:
http://explorer.dobbscoin.info/tx/f991920a70616a2c09fe03c588784050625ffface03e9989f89497f996991af3

I started a thread on our forum to investigate and document the issue when I thought it might be related to how our faucet interacts with the iquidus explorer. I'll keep an eye on it and keep updating any future BLOCK ZERO info there.

Is there a iquidus 2.0 in the works?

http://dobbscoin.info/smf/index.php?topic=178.msg656;topicseen#new

ELIFECYCLE error

NodeJS is still fairly new to me so I'm having trouble figuring this one out. Probably one of those things that should be obvious to me but I'm just missing something. I have went over my settings very thoroughly as well, I'm pretty sure I've got everything correct in it, tried using the supplied template settings file just to see, got the same error each time.

There was an error processing your settings.json file: Unexpected token T

npm ERR! [email protected] start: node --stack-size=10000 ./bin/www
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the explorer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node --stack-size=10000 ./bin/www
npm ERR! You can get their info via:
npm ERR! npm owner ls explorer
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! cwd /home/towedunder/explorer
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/towedunder/explorer/npm-debug.log
npm ERR! not ok code 0

node scripts/sync.js index reindex - Only index's block #1

Hello,
Issue is when i run: node scripts/sync.js index reindex
It returns: reindex complete (block: 1)
then
I run node scripts/sync.js index update
I get the same results as "reindex"

On the website. It only displays block #1.
Only when I enter a block height in the search bar of the site I get to see address, amounts, etc.
When I return to home page, It now it displays only the blocks I entered in the search

thanks

mongodb

getting this error and can't find out why

Starting cluster with pid: 15849
Unable to connect to database: mongodb://user:password@localhost:27017/explorerdb
Aborting

am i forgetting something?

and this i see when i type mongo

mongo
MongoDB shell version: 3.0.0
connecting to: test
Server has startup warnings:
2015-05-06T23:05:29.551-0400 I CONTROL [initandlisten]
2015-05-06T23:05:29.551-0400 I CONTROL [initandlisten] ** WARNING: You are running in OpenVZ which can cause issues on versions of RHEL older than RHEL6.
2015-05-06T23:05:29.551-0400 I CONTROL [initandlisten]

link to peers from network

Hi,

Can you add an option to allow viewing of network peers? Perhaps a list of ip's as well as a pre-formatted list using addnode=

Cheers

Rich List is not working

The Rich List is not working, I've tried reindexing a couple of times, dropping the whole database, spawning a new server and nothing helps.
The error I get when looking at the dev-console is "Uncaught ReferenceError: pieWealthDist is not defined".

TypeError: Cannot read property 'success' of undefined

c:\explorer\lib\markets\cryptsy.js:45
if (body.success == true) {

TypeError: Cannot read property 'success' of undefined
at Request._callback (c:\explorer\lib\markets\cryptsy.js:45:13)
at self.callback (c:\explorer\node_modules\request\request.js:121:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest.self.clientErrorHandler (c:\explorer\node_modules\request\r
equest.js:230:10)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at TLSSocket.socketErrorListener (_http_client.js:267:9)
at emitOne (events.js:77:13)
at TLSSocket.emit (events.js:169:7)
at connectErrorNT (net.js:996:8)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)

got this error when run:
*/2 * * * * cd /path/to/explorer && /usr/bin/node scripts/sync.js market

Indexing Problem - Problem with block?

Hi,

I am attempting to set up Iquidus for Crowncoin. Indexing always fails at block #600805. #600804 is the last successfully indexed block. The dev team are not aware of anything unusual about this block. There are no hard forks associated with it, it looks pretty normal.

The error message is as follows:

/home/ubuntu/explorer/lib/explorer.js:285
        module.exports.is_unique(arr_vout, vout[i].scriptPubKey.addresses[0], function(unique, index) {
                                                                         ^

TypeError: Cannot read property '0' of undefined
    at module.exports.syncLoop.arr_vout.(anonymous function).amount (/home/ubuntu/explorer/lib/explorer.js:285:74)
    at Object.loop.next (/home/ubuntu/explorer/lib/explorer.js:189:18)
    at Object.module.exports.syncLoop (/home/ubuntu/explorer/lib/explorer.js:205:10)
    at Object.module.exports.prepare_vout (/home/ubuntu/explorer/lib/explorer.js:279:20)
    at /home/ubuntu/explorer/lib/database.js:141:17
    at /home/ubuntu/explorer/lib/explorer.js:387:14
    at Object.loop.next (/home/ubuntu/explorer/lib/explorer.js:194:24)
    at /home/ubuntu/explorer/lib/explorer.js:373:22
    at Object.module.exports.convert_to_satoshi (/home/ubuntu/explorer/lib/explorer.js:25:12)
    at /home/ubuntu/explorer/lib/explorer.js:371:30
    at /home/ubuntu/explorer/lib/explorer.js:258:14
    at Object.loop.next (/home/ubuntu/explorer/lib/explorer.js:194:24)
    at Object.module.exports.syncLoop (/home/ubuntu/explorer/lib/explorer.js:205:10)
    at Object.module.exports.is_unique (/home/ubuntu/explorer/lib/explorer.js:247:20)
    at /home/ubuntu/explorer/lib/explorer.js:369:26
    at /home/ubuntu/explorer/lib/explorer.js:353:20

This is an explorer link to the block that is causing a problem https://www.blockexperts.com/crw/height/600805

Coin daemon is latest version and I have tried re-indexing. Daemon is running with appropriate flags.

Can anybody advise?

Many thanks,

Dan

Error in scripts/sync.js on zcash coin

Setting up a new explorer session to read ZCash block chain. Most everything has gone well, but recieving the following error on block 396 (each and every time)

/opt/zcash_explorer/explorer$ /usr/local/bin/node scripts/sync.js index check
script launched with pid: 5609

TypeError: Cannot read property 'scriptPubKey' of undefined
at /opt/zcash_explorer/explorer/lib/explorer.js:310:18
at Object.loop.next (/opt/zcash_explorer/explorer/lib/explorer.js:194:24)
at Object.module.exports.syncLoop (/opt/zcash_explorer/explorer/lib/explorer.js:205:10)
at Object.module.exports.prepare_vout (/opt/zcash_explorer/explorer/lib/explorer.js:284:20)
at /opt/zcash_explorer/explorer/lib/database.js:141:17
at /opt/zcash_explorer/explorer/lib/explorer.js:392:14
at Object.loop.next (/opt/zcash_explorer/explorer/lib/explorer.js:194:24)
at /opt/zcash_explorer/explorer/lib/explorer.js:378:22
at Object.module.exports.convert_to_satoshi (/opt/zcash_explorer/explorer/lib/explorer.js:25:12)
at /opt/zcash_explorer/explorer/lib/explorer.js:376:30
at /opt/zcash_explorer/explorer/lib/explorer.js:263:14
at Object.loop.next (/opt/zcash_explorer/explorer/lib/explorer.js:194:24)
at Object.module.exports.syncLoop (/opt/zcash_explorer/explorer/lib/explorer.js:205:10)
at Object.module.exports.is_unique (/opt/zcash_explorer/explorer/lib/explorer.js:252:20)
at /opt/zcash_explorer/explorer/lib/explorer.js:374:26
at /opt/zcash_explorer/explorer/lib/explorer.js:358:20

Shows double blocks

I have a small issue, the explorer runs as it should but it displays 2 blocks. One is the newly generated coins, the second show the extra transactions in that block.
You can take a look at :
http://explorer.sicanet.net

block index confusion

As I write this, getblockcount returns the "number of blocks currently in the blockchain" as 159699. Since blocks are counted using a 0-based index, 159700 shouldn't be a valid block... it should only go up to 159698. But:
http://heavychain.info/api/getblockhash?index=159700
returns "0000000001116ae0f6cc0a3ce030ce59d513c620d8ae9ba820d8bfaa922a3b7b"

So either getblockcount actually returns the "number of blocks minus one" aka "highest block number" or else getblockhash is using a 1-based index. I suspect the former, but could we have some clarity in the docs, please?

Unable to update mongoDB?

Hello !
I can install mongoDB2.6.9, node.js0.10.28 and iquidus. I edit settings.json and confirm connecting with coind correctly.

But, I can't confirm Update of mongoDB because iquidus don't update latest transaction.
When I search Block hash, tx hash or address,iquidus display "Error! : Search found no results for".
On the other hand, I can search block height. And I search a address once, iquidus display the address next.

I checked mongoDB.

db.stats()
{
"db" : "explorerdb",
"collections" : 7,
"objects" : 73,
"avgObjSize" : 279.45205479452056,
"dataSize" : 20400,
"storageSize" : 90112,
"numExtents" : 8,
"indexes" : 7,
"indexSize" : 57232,
"fileSize" : 67108864,
"nsSizeMB" : 16,
"dataFileVersion" : {
"major" : 4,
"minor" : 5
},
"extentFreeList" : {
"num" : 0,
"totalSize" : 0
},
"ok" : 1
}

Next, I searched other block heights.
"objects" : 115,
"avgObjSize" : 300.6608695652174,
"dataSize" : 34576,
"storageSize" : 122880,
"numExtents" : 9,

DB increased?
When I checked DB after 1hour ago, there is no difference on DB.

What shuld I do ???

No data available in table

hi guys just trying the explorer here http://84.200.210.86:8088/

it shows the no of blocks in the bottom and connected peers
ive created a default user with read/write access: " Just =too see how it works when ive sorted it i will change it all over "

db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )

what am i doing wrong ?

ive filled out the info in the config etc and added the cronjobs

what command do i use to update the database so it shows the blocks etc

ive tried this

sudo node scripts/sync.js index update
Script already running..

and sudo node scripts/sync.js database update

but get Usage: node scripts/sync.js [database] [mode]

any help would be great thank you guys

here is my coin conf

listen=1
server=1
demon=1
rpcuser=coinname
rpcpassword=6546545654
rpcport=5943
enableaccounts=1
rpcallowip=127.0.0.1
txindex=1

Use of labels

Hi,
This is just a question regarding use of labels. I am frightened of messing it up by experimenting, especially if it is not possible anyway.

Is it possible to use a label on the front page under "coin supply?" I use a "this is a burn address" label with an account which can be seen when you check the top-100 accounts, or search using the account address. It was simple to set up, because of the example given in settings.

The "coin supply" box obviously includes the burn address coins in the coins in the total it reports are in supply. I was wondering whether it is possible to add a label (or link) here which states "X amount of coin supply destroyed".

Thanks and regards

Iquidus Explorer 2.0

An entire rewrite of the explorer is planned. It has been on my todo list for quite some time however keeps getting bumped down as other projects have taken priority (as the current explorer works). Due to recent developments I now have a lot more resources at my disposal and will be hiring some devs to help with various projects, including this one. I have created this issue for people to add any feature requests.

Planned changes.

  1. Store tx, address and balance data more efficiently, resulting in much faster indexing times.
  2. Separate front-end from backend/API. So one frontend can connect to many backends/API's (multicoin support)
  3. Plugin framework
  4. Move markets & richlist/wealth distribution functionality into plugins, outside of main codebase for easier maintenance and customizations.
  5. Network plugin, displaying, charting and mapping various network information.
  6. Decred support

Please add anything you would like as a response so I can keep it in mind when writing the core code.

Add Cryptsy as a market

Hey guys,

you have done really great work. As a suggestion, please add cryptsy as a market.

cheers

Trying to install this...running into errors :(

Hi,

Want to make a BC explorer for a coin, but after installing and getting the page i get this

GET /api/getconnectioncount 200 3ms - 39b
GET /ext/getlasttxs/100/0.00000001?_=1447333764940 200 5ms - 11b
{ [Error: socket hang up] code: 'ECONNRESET' }
GET /api/getblockcount 200 4ms - 39b
GET /ext/summary 304 34ms
{ [Error: socket hang up] code: 'ECONNRESET' }
GET /api/getdifficulty 200 5ms - 39b
{ [Error: socket hang up] code: 'ECONNRESET' }
GET /api/getnetworkhashps 200 2ms - 39b
{ [Error: socket hang up] code: 'ECONNRESET' }
GET /api/getconnectioncount 200 3ms - 39b
{ [Error: socket hang up] code: 'ECONNRESET' }
GET /api/getblockcount 200 5ms - 39b
GET /ext/summary 304 26ms

I have put explorer map in the root of the coin, but do i have to place it in .testcoin map or normal testcoin map?

Can you help me with this?

api ext/getaddress/ kills client if address not seen on network

When i try to use the api to get address that is not yet seen on the network, the client stops running with error

/root/explorer/app.js:62
address: address.a_id,
^
TypeError: Cannot read property 'a_id' of undefined
at /root/explorer/app.js:62:23
at /root/explorer/lib/database.js:465:14
at Promise. (/root/explorer/lib/database.js:63:14)
at Promise. (/root/explorer/node_modules/mongoose/node_modules/mp
romise/lib/promise.js:177:8)
at Promise.emit (events.js:95:17)
at Promise.emit (/root/explorer/node_modules/mongoose/node_modules/mpromise/
lib/promise.js:84:38)
at Promise.fulfill (/root/explorer/node_modules/mongoose/node_modules/mpromi
se/lib/promise.js:97:20)
at Object.cb (/root/explorer/node_modules/mongoose/lib/query.js:1145:30)
at Object._onImmediate (/root/explorer/node_modules/mongoose/node_modules/mq
uery/lib/utils.js:137:16)
at processImmediate as _immediateCallback

npm ERR! [email protected] start: node --stack-size=10000 ./bin/www
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the explorer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node --stack-size=10000 ./bin/www
npm ERR! You can get their info via:
npm ERR! npm owner ls explorer
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! cwd /root/explorer
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/explorer/npm-debug.log
npm ERR! not ok code 0

UNSPENT api

UNSPENT API: Is there such a thing?

My schildbach wallet developer says he needs to be able to querry unspent outputs.. 'er something, and seems to be suggesting that the explorer might have it. I know the wallet can listunspent from addresses it owns, but it's not something the Iquidus Explorer can currently do. -right?

"Cannot read property 'length' of undefined" error from scripts/sync.js

Hello!

I seem to be getting this error when trying to update the transaction db in mongo

root@ubuntu-512mb-nyc3-01:~/explorer# node scripts/sync.js index update

script launched with pid: 14834
error on this? There was an error. Check your console.

TypeError: Cannot read property 'length' of undefined
    at /root/explorer/lib/database.js:629:36
    at Request._callback (/root/explorer/lib/explorer.js:106:14)
    at Request.self.callback (/root/explorer/node_modules/request/request.js:121:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/root/explorer/node_modules/request/request.js:985:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/root/explorer/node_modules/request/request.js:936:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)

This was found in the tmux screen I started npm in

> [email protected] start /root/explorer
> node --stack-size=10000 ./bin/cluster

Starting cluster with pid: 14805
GET /api/getblockcount 200 13ms - 6b
GET /api/getconnectioncount 200 3ms - 1b
{ [Error: Block number out of range.] code: -1 }
GET /api/getblockhash?height=-8 200 4ms - 39b
{ [Error: Block not found] code: -5 }
GET /api/getblock?hash=There%20was%20an%20error.%20Check%20your%20console. 200 21ms - 39b

I've gone through other Closed issues here but am not able to find something relating to this error. Possibly does this mean all transactions have been synced? It was working for a bit prior to getting this error (or atleast it seemed to be working, printing lots to the console as far as tx's it was finding and syncing)

Please let me know if there is any other information I can provide here to be more helpful in getting some help

Any/all help would be appreciated, Thank you! :)

C-Cex Exchange Market Data

Seems C-Cex pull the latest price and displays in box; however, unable to retrieve market data. Is this an issue for everyone? API changed?

incorrect total send and total received in POS coin

the sum of total send and total received in pos included every one pos stake generated.
for properly result need to fix it:
example
if pos address sender and address received is same .
then in total send will add nothing
in total receive will add pos results

orphan block

is there a way to check which block is orphan or which is confirmed

Index Issue

This message are all the time on the front end, I create a crontab to make the index update every minute but do not work properly, when I run the update said something like that: "script already running". On the front end show this message: "Warning: Indexing is currently incomplete, functionality is limited until index is up-to-date"

How to solve this? Thank you

Sync.js TypeError

Hey,

I'm running Iquidus on Debian Wheezy with MongoDB 2.6.10, Node.js 0.10.40 and the latest Iquidus. After following the instructions on the Github and configuring everything I ran Iquidus and tried to sync the database with my coin's blockchain but I get this when running the following command:

root@server1:~/explorer# /usr/bin/node scripts/sync.js index update
script launched with pid: 17933

TypeError: Cannot read property 'length' of undefined
at /root/explorer/lib/database.js:622:36
at Request._callback (/root/explorer/lib/explorer.js:106:14)
at Request.self.callback (/root/explorer/node_modules/request/request.js:121:22)
at Request.emit (events.js:98:17)
at Request. (/root/explorer/node_modules/request/request.js:985:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/root/explorer/node_modules/request/request.js:936:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:448:13)

Any ideas on what I'm doing wrong?

Sync data crashed in the middle in Kurrent coin

I set up an iquidus explorer for Kurrent (https://bitcointalk.org/index.php?topic=1691086.0), a zerocoin/X11 coin. When I sync data with sync.js (index update), everything goes on well until block 1257, where there's a vout[1], and it crashes:

1256: b2baf0dc884dcee7f56faae7e0b69a5db9d08165bfb5bfbe8709c5008df85df5
vout:0:bd70165c6ef524ba7cfff71403e72c1df285b9ab0c33f49a9e176429bcf31a43
1257: bd70165c6ef524ba7cfff71403e72c1df285b9ab0c33f49a9e176429bcf31a43
vout:0:887aded62f59bb442284259bc98283013be8c55037f120424ce9524f61f2616f
vout:1:887aded62f59bb442284259bc98283013be8c55037f120424ce9524f61f2616f

TypeError: Cannot read property '0' of undefined
at module.exports.syncLoop.arr_vout.(anonymous function).amount (/var/www/ht
ml/iquidus-explorer/lib/explorer.js:291:74)
at Object.loop.next (/var/www/html/iquidus-explorer/lib/explorer.js:189:18)
at /var/www/html/iquidus-explorer/lib/explorer.js:296:20
at Object.module.exports.convert_to_satoshi (/var/www/html/iquidus-explorer/
lib/explorer.js:25:12)
at /var/www/html/iquidus-explorer/lib/explorer.js:294:28
at /var/www/html/iquidus-explorer/lib/explorer.js:263:14
at Object.loop.next (/var/www/html/iquidus-explorer/lib/explorer.js:194:24)
at Object.module.exports.syncLoop (/var/www/html/iquidus-explorer/lib/explor
er.js:205:10)
at Object.module.exports.is_unique (/var/www/html/iquidus-explorer/lib/explo
rer.js:252:20)
at module.exports.syncLoop.arr_vout.(anonymous function).amount (/var/www/ht
ml/iquidus-explorer/lib/explorer.js:291:24)
at Object.loop.next (/var/www/html/iquidus-explorer/lib/explorer.js:189:18)
at Object.module.exports.syncLoop (/var/www/html/iquidus-explorer/lib/explor
er.js:205:10)
at Object.module.exports.prepare_vout (/var/www/html/iquidus-explorer/lib/ex
plorer.js:284:20)
at /var/www/html/iquidus-explorer/lib/database.js:141:17
at /var/www/html/iquidus-explorer/lib/explorer.js:393:14
at Object.loop.next (/var/www/html/iquidus-explorer/lib/explorer.js:194:24)

I tried to sync only with vout[0], but still there are similar errors after a few more blocks. Any suggestions? Thanks.

Unable to connect to explorer API

Hi, I'm trying to create a block explorer for my coin, all seemed working until I got this error while syncing the db with the chain:

root@vps:/home/explorer# sudo node scripts/sync.js index update
script launched with pid: 1137
Unable to connect to explorer API
update complete (block: 1)

I get this error "Unable to connect to explorer API".

My config file is written as follows (set as read-only):

rpcuser=COINRPC
rpcpassword=PASSWORD
listen=1
server=1
port=21478 (rpc port of my coin)
txindex=1
rpcconnect=127.0.0.1
maxconnections=500

I tried these fixes:

  • rebooting and relaunching
  • "rpcport=21478" instead of "port" (gives error in explorer page "check your console")
  • "rpcconnect=VPS IP ADDRESS" (nothing happens)
  • tried tmp/index.pid (no such file or directory)

Wallet is working (getinfo, getmininginfo ok).
Is something related to settings.json file?
I can display successfully the explorer on port 3001 but it's empty - no errors "check console" are given. I got no error during all the processes and the only issue I have is this "Unable to connect to explorer API". Lots of headaches but nothing comes up. Anyone had similar issues?

Wrong balances

Running 1.5.0, you can see my explorer here: http://45.55.164.106:3001/

All addresses I checked have their balances completely wrong, and I'm not sure what the issue is... For example, here is one: FoDBQze6imDwxycbih7yweXBESGLkrS9kL. You can see it has a negative balance but really should have 52593.48627218. The coin I'm using is POS if it helps.

x13 algo problem console. blocks console. connections

hi
thanks for this awesome script
i just follow all instructions and i install it but cant integrate my coin with explorer
" There was an error. Check your console. blocksThere " " was an error. Check your console. connections"
Difficulty "There was an error. Check your console."

also when i tried to explorer address or tx or block hash
i'm just confused what should put here in setting.json file
//genesis
"genesis_tx": "0x86xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6",
"genesis_block": "0x00000bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9",

the algo that used in my coin is X13
in the source code src/main.cpp found assert(block.hashMerkleRoot == uint256("0x86xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6"));
src/main.h static const uint256 hashGenesisBlock("0x00000bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9");

what should i do please
thanks again

Is this error from the coin Blockchain?

I get an error when running "node scripts/sync.js index check" (this was working for a week without a problem).

tx not found: 6be77ef48cd15abaaeddb3f79357342082ab56a3de5ca923548e5dc2141ad4b6

TypeError: Cannot read property 'length' of undefined
at /home/BE/dashlite/lib/explorer.js:309:42
at Request._callback (/home/BE/dashlite/lib/explorer.js:84:14)
at Request.self.callback (/home/BE/dashlite/node_modules/request/request.js:121:22)
at Request.emit (events.js:98:17)
at Request. (/home/BE/dashlite/node_modules/request/request.js:985:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/home/BE/dashlite/node_modules/request/request.js:936:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:442:13)

And this is when I run:
node scripts/sync.js index reindex

1071: 9c971c5207d0e074183c68a988b64b8dc06bc2a64c35dedd6a90a2ca591958cb

TypeError: Cannot read property 'length' of undefined
at /home/BE/dashlite/lib/explorer.js:309:42
at Request._callback (/home/BE/dashlite/lib/explorer.js:84:14)
at Request.self.callback (/home/BE/dashlite/node_modules/request/request.js:121:22)
at Request.emit (events.js:98:17)
at Request. (/home/BE/dashlite/node_modules/request/request.js:985:14)
at Request.emit (events.js:117:20)
at IncomingMessage. (/home/BE/dashlite/node_modules/request/request.js:936:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:442:13)

No pos transactions

Hi i have configured Iquidus at http://185.115.243.223/, all working fine except POS transactions does not appears: for example http://185.115.243.223/block/c3905c1862bcc5f80ff98c6b099ca9832111aa663c8d3e2a7d3d087200848d61, it appears to be a 0 transaction, and dont show the pos reward, but if i go inside the transaction: http://185.115.243.223/api/getrawtransaction?txid=1f31b2e6236c9cc0505a57c0b9894268593d0cda20c9604d60f6ac0145a04163&decrypt=1 i can see the pos reward correctly "value": 23.75, "value": 23.76040212, it is an hybrid pow/pos coin called Revenu, setting json is=
// index page (valid options for difficulty are POW or POS)
"index": {
"show_hashrate": true,
"difficulty": "Hybrid",
"last_txs": 100
},

// ensure links on API page are valid
"api": {
"blockindex": 1013,
"blockhash": "4339c14669fe166cc6d4849943d40155028c447b0a99728e8c604129164fd748",
"txhash": "8877a48137024b02edcc73869b52edc052d064394d6629b5f6030a069d0133b9",
"address": "RrdNpxRcbVxB9PzaujQd3rRzvj5SnQCmgy"
},

// market settings
//supported markets: bittrex, poloniex, yobit, empoex, cryptsy, bleutrade
//default market is loaded by default and determines last price in header
"markets": {
"coin": "rev",
"exchange": "btc",
"enabled": ["ccex"],
"ccex_key" : "F58C3CB8C271C4BEBE582DF0EFD3" ,
"default": "ccex"
},

// richlist/top100 settings
"richlist": {
"distribution": true,
"received": true,
"balance": true
},

// twitter
"twitter": "iquidus",

//genesis
"genesis_tx": "00000ebc988a29ebf02daceaf8535b0da4ff06de6de68c50daa75a9c38faeba6",
"genesis_block": "6ab37d41be7b74b331b5b411cc709d90c7e44c91fddc3fe6325309b4cd74372e",

//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": false,

// 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": "GETINFO",

// how to acquire network hashrate
// getnetworkhashps: uses getnetworkhashps api call, returns in GH/s
// netmhashps: uses getmininginfo.netmhashpsm returns in MH/s
"nethash": "netmhashps",

// nethash unitd: sets nethash API return units
// valid options: "P" (PH/s), "T" (TH/s), "G" (GH/s), "M" (MH/s), "K" (KH/s)
"nethash_units": "M",

Thank you in advance

Server DIES while indexing/reindexing

Everything seems to be working smoothly... AND THEN
My server goes dead - falls offline..
all my ssh windows timeout and my remote server shows OFFLINE.
All my clients and wallets ping out. ..
and I have to login to my remote console and restart it.

I figured it was because the flow of information being displayed to me across the bitwaves was too great and tried to reindex w/node scripts/sync.js index reindex - in a backgrounded screen, but it also seems to exhibit the same issues.

Gonna have to restart everything again.

problem with market data and toFixed(8)

This is what i see in the market link

explorer/views/markets/bittrex.jade:24 22| tbody 23| tr > 24| td #{marketdata.data.summary.High.toFixed(8)} 25| td #{marketdata.data.summary.Low.toFixed(8)} 26| td #{marketdata.data.summary.Volume.toFixed(8)} 27| td.hidden-xs #{marketdata.data.summary.Bid.toFixed(8)} Cannot call method 'toFixed' of undefined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.