Skip to content

Commit

Permalink
bring explorer code up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptokatz committed Nov 12, 2018
1 parent 22769bf commit b54d3b0
Show file tree
Hide file tree
Showing 25 changed files with 15,545 additions and 1,198 deletions.
5 changes: 3 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Header set Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
Header add Access-Control-Allow-Headers "Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
Header add Access-Control-Allow-Credentials "true"
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# Conceal Explorer
Block explorer for Conceal Cryptocurrency.
# TurtleCoin-Blockchain-Explorer
Block explorer for TurtleCoin CryptoNote based cryptocurrency.

#### Installation

1) It takes data from daemon "conceald". It should be accessible from the Internet. Run the daemon with open port as follows:
1) It takes data from daemon turtlecoind. It should be accessible from the Internet. Run turtlecoind with open port as follows:
```bash
./conceald --rpc-bind-ip=0.0.0.0 --rpc-bind-port=16000
./TurtleCoind --enable-cors="*" --enable_blockexplorer --rpc-bind-ip=0.0.0.0 --rpc-bind-port=11898
```
2) Just upload to your website and change 'api' variable in config.js to point to your daemon. You will also need to go through the API pages and update the links to point to your daemon IP as well. The API pages are located in the "q/" directory, the index.php file must point to your daemon IP. You must change all 4 of them "hashrate" "reward" "supply" "height"
2) Just upload to your website and change 'api' variable in config.js to point to your daemon.


### Development
Devs:
@devopsralf

Donate: [TRTL] TRTLv2RCPuD7AaaVpQkRPF59MMLx5WW3qFxwJz4Doy7dHhNA6UuQjEpLL3rpUQS4RXdQn8fb4P1XC3K62GeJjGgG8DP9LNaTrNL

### Note

A lot of this code is from the great Karbovanets/Karbowanec-Blockchain-Explorer
24 changes: 19 additions & 5 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
var api = 'http://localhost:16000';
var api = 'https://explorer.conceal.network/daemon';
var donationAddress = "";
var blockTargetInterval = 120;
var coinUnits = 1000000;
var symbol = 'CCX';
var refreshDelay = 30000;
var refreshDelay = 60;
// pools stats by MainCoins
var networkStat = {
"ccx": [
["pool.conceal.network", "https://pool.conceal.network/api"],
["ccx.scecf.org", "https://ccx.scecf.org:21001"],
["ccx.bluerockpools.net", "https://ccx.bluerockpools.net:8119"],
["ccx.heigh-ho.funkypenguin.co.nz", "https://api.ccx.heigh-ho.funkypenguin.co.nz"],
["ccx.thepiratemine.nl", "https://ccx.thepiratemine.nl:2890"],
["conceal.herominers.com", "https://conceal.herominers.com/api"],
]
};
var networkStat2 = {
"ccx": [
["ccxpool.tk", "http://ccxpool.tk/"],

]
["ccx.go-mine.it", "https://ccx.go-mine.it/api"],
]
};




11 changes: 11 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
return array(
'api' => 'https://explorer.conceal.network/daemon',
'blockTargetInterval' => 120,
'coinUnits' => 1000000,
'maple' => 'https://maplechange.com/api/v2/tickers/ccxbtc.json',
'bitstamp' => 'https://www.bitstamp.net/api/ticker/'


);
?>
Loading

0 comments on commit b54d3b0

Please sign in to comment.