ubiq-explorer

所属分类:数值算法/人工智能
开发工具:GO
文件大小:640KB
下载次数:0
上传日期:2019-03-23 00:17:28
上 传 者sh-1993
说明:  ubiq资源管理器,ubiq-区块链资源管理器和池
(Ubiq - Block Chain Explorer and Pool ,)

文件列表:
.idea (0, 2019-03-23)
.idea\modules.xml (278, 2019-03-23)
.idea\ubiq-explorer.iml (281, 2019-03-23)
.idea\workspace.xml (9958, 2019-03-23)
TODO.md (50, 2019-03-23)
conf (0, 2019-03-23)
conf\app.conf (1037, 2019-03-23)
controllers (0, 2019-03-23)
controllers\address.go (689, 2019-03-23)
controllers\balance.go (2244, 2019-03-23)
controllers\block.go (2563, 2019-03-23)
controllers\exchange.go (2093, 2019-03-23)
controllers\stats.go (3640, 2019-03-23)
controllers\token.go (6900, 2019-03-23)
controllers\transaction.go (6661, 2019-03-23)
controllers\uncle.go (2668, 2019-03-23)
cron (0, 2019-03-23)
cron\exchange.go (954, 2019-03-23)
cron\pool.go (3028, 2019-03-23)
daemon (0, 2019-03-23)
daemon\blockdaemon.go (8046, 2019-03-23)
daemon\core (0, 2019-03-23)
daemon\core\blocks.go (2519, 2019-03-23)
daemon\tokens (0, 2019-03-23)
daemon\tokens\token.abi (3119, 2019-03-23)
daemon\tokens\tokens.go (23121, 2019-03-23)
daemon\tokens\utils.go (5865, 2019-03-23)
daos (0, 2019-03-23)
daos\address.go (720, 2019-03-23)
daos\balance.go (2446, 2019-03-23)
daos\block.go (1526, 2019-03-23)
daos\exchange.go (3331, 2019-03-23)
daos\history.go (588, 2019-03-23)
daos\miner.go (321, 2019-03-23)
daos\pools.go (662, 2019-03-23)
daos\token.go (2641, 2019-03-23)
daos\tokenBalance.go (1091, 2019-03-23)
daos\transactions.go (3068, 2019-03-23)
... ...

# ubiq-explorer Ubiq.cc - Block Chain Explorer and Pool This is the API and front end for the Ubiq block explorer at www.ubiq.cc The API backend is written in golang and uses the beego framework. ### Status ### I've been away for a while because I'm busy with life, but I'm trying to get everything fixed. Please feel free to donate to cover some costs for keeping this running - UBQ / ETH / ETC. 0x18520a8aaf5142e0d788db696bb46124b2e7bb9b ## API Requirements: * Go 1.7+ ( only 1.8 has been tested ) * MongoDB 3.6+ * Beego 1.9 * Beego Bee tool * Ubiq go node * abigen ( You need to build this from ethereum/go-etherem, not go-ubiq ) ## UI Requirements * node / npm * nginx ## Installing You need to first install all dependencies and verify that they are working. I have only ever installed on Ubuntu and there is an install script for Ubuntu 16.04 that will build and install the explorer for you. If you are using Ubuntu 16.04, simply run: ``` sh scripts/build.sh ``` Assuming that you have dependencies installed, this should build and install everything for you. If you are not using Ubuntu 16.04, you can manually install everything: 1. Build token.abi ``` abigen --abi ./daemon/tokens/token.abi --pkg tokens --type Token --out ./daemon/tokens/tokens.go ``` 2. Build the block daemon and pool monitor ``` go build -o bin/blockdaemon daemon/blockdaemon.go go build -o bin/poolstats daemon/pool.go ``` 3. Build the UI ``` cd www npm install ``` 4. Package everything ``` bee pack ``` 5. Unpack to wherever you'd like to install ``` tar -C /destination/directory -xf ubiq-explorer.tar.gz ``` 6. Add scripts/nginx.conf to your NGINX config 7. Add scritps/cron to /etc/cron.d/ ## Configuration * The configuration file can be found in conf/app.conf Here are the parameters that you'll likely be interested in: ### General settings * httpport : The port that the API server listens on. Your NGINX needs to proxy here. * runmode : Beego run mode [ dev / production ] * EnableAdmin : Enable the Beego admin interface * AdminPort : The port for the Beego admin interface ### Mongodb * url : Mongo DB URL * max_connections : Max simultaneous, separate MongoDB connections ### Stats * smooting : This is the number of blocks used to average out current hash rate, block time, difficulty & uncle rate to make charts smoother * history_window : The number of blocks to keep in the history graphs. Changing this number requires a drop of the Mongo DB or manually altering the cap on the collections * miner_window : The number of blocks to show in the miner graph * use_target_block_time : Use the target block time when calculating hash rate. This results in a very smooth graph, but I don't believe it's very accurate w/ the difficulty algo of Ubiq * target_block_time : The target block time to use when use_target_block_time = 1 ## Running * Nginx needs to be running. ### Ubuntu auto install from script 1. Start your wallet ``` sudo service wallet start ``` 2. Start the block daemon ``` sudo service blockdaemon start ``` 3. Start API server ``` sudo service ubiq-api start ``` ### Manual install 1. Start your wallet 2. Start the block daemon ``` cd /destination/directory ./bin/blockdaemon ``` 3. Start API server ``` cd /destination/directory ./ubiq-explorer ``` ## Other notes You can add the default Ubiq pool list by running: ``` sh tests/pools.sh ``` You can add the default address list ( those that display names in the UI instead of just address ): ``` sh tests/addresses.sh ``` There are a lot of things that the blockdaemon stores in the DB, so building the DB from scratch takes a very long time ( a couple of days probably ).

近期下载者

相关文件


收藏者