Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update style and change some parameter to display masternode #9

Open
wants to merge 7 commits into
base: chain
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This project is a fork of [Iquidus Explorer](https://github.com/iquidus/explorer

### See it in action

* [explorer.chaincoin.org](https://explorer.chaincoin.org)
* [http://54.37.18.226:3001/](http://54.37.18.226:3001/)


### Requires
Expand Down Expand Up @@ -36,11 +36,14 @@ Create user with read/write access:

### Get the source

git clone https://github.com/suprnurd/ciquidus explorer
git clone https://github.com/jayanh/ciquidus explorer

### Install node modules

cd explorer && npm install --production

Note: if you get error with /lib/kerberosgss
do sudo apt-get install libkrb5-d

### Configure

Expand All @@ -51,6 +54,10 @@ Create user with read/write access:
### Start Explorer

npm start

To use forever to start (run in directory of explorer):
npm install forever -g
forever start -c "npm start" ./

*note: mongod must be running to start the explorer*

Expand All @@ -67,6 +74,8 @@ To stop the cluster you can use
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]
Example: node scripts/sync.js index reindex
node scripts/sync.js index update

database: (required)
index [mode] Main index: coin info/stats, transactions & addresses
Expand Down Expand Up @@ -104,8 +113,7 @@ The wallet connected to Ciquidus must be running with atleast the following flag

### Donate

CHC: CLkWg5YSLod772uLzsFRxHgHiWVGAJSezm
BTC: 1J8Chi5teDJrvBtSuQhioNCHfTNBCcCrPx
BTC: 1EXZTqbmg2iHCTYtmibnT8qGvhmExVCu8e

### Known Issues

Expand Down
Binary file added public/images/explorer_bottom_daymode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/explorer_header_daymode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/themes/Cosmo/bootstrap.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,15 @@ router.get('/ext/summary', function(req, res) {
if (hashrate == 'There was an error. Check your console.') {
hashrate = 0;
}
var masternodesoffline = Math.floor(masternodestotal - masternodesonline);
var masternodesoffline = Math.floor(masternodestotal.total - masternodestotal.enabled);
res.send({ data: [{
difficulty: difficulty,
difficultyHybrid: difficultyHybrid,
supply: stats.supply,
hashrate: hashrate,
lastPrice: stats.last_price,
connections: connections,
masternodeCountOnline: masternodesonline,
masternodeCountOnline: masternodestotal.enabled,
masternodeCountOffline: masternodesoffline,
blockcount: blockcount
}]});
Expand Down