GithubHelp home page GithubHelp logo

qtum-explorer's Introduction

Explorer

A QTUM blockchain explorer web application service for Qtumcore Node using the QTUM API.

Getting Started

  1. Install nvm https://github.com/creationix/nvm

    nvm i v6
    nvm use v6
  2. Install mongo https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

  3. Install qtum-bitcore https://github.com/qtumproject/qtum-bitcore - with ZMQ !

    # with ZMQ
    sudo apt-get install libzmq3-dev 
  4. Install qtumcore-node

    npm i https://github.com/qtumproject/qtumcore-node.git#master
    
    $(npm bin)/qtumcore-node create mynode
    
    cd mynode
    
    $(npm bin)/qtumcore-node install https://github.com/qtumproject/insight-api.git#master
    $(npm bin)/qtumcore-node install https://github.com/qtumproject/qtum-explorer.git#master
  5. Edit qtumcore-node.json

    {
      "network": "livenet",
      "port": 3001,
      "services": [
        "qtumd",
        "qtum-insight-api",
        "qtum-explorer",
        "web"
      ],
      "servicesConfig": {
        "qtum-explorer": {
          "apiPrefix": "qtum-insight-api",
          "routePrefix": "qtum-explorer",
          "nodemapLink": "https://qtum.org/en/nodemap"
       },
       "qtum-insight-api": {
         "routePrefix": "qtum-insight-api",
         "rateLimiterOptions": {
           "whitelist": [
             "123.456.12.34",
             "::ffff:123.456.12.34"
           ],
           "whitelistLimit": 9999999,
           "limit": 200,
           "interval": 60000,
           "banInterval": 3600000
         },
          "db": {
            "host": "127.0.0.1",
            "port": "27017",
            "database": "qtum-api-livenet",
            "user": "",
            "password": ""
         },
          "erc20": {
            "updateFromBlockHeight": 0
          }
        },
        "qtumd": {
          "spawn": {
            "datadir": "/home/user/.qtum",
           "exec": "/home/user/qtum-bitcore/src/qtumd"
          }
        }
      }
    }
    
  6. Edit qtum.conf

    server=1
    whitelist=127.0.0.1
    txindex=1
    addressindex=1
    timestampindex=1
    spentindex=1
    zmqpubrawtx=tcp://127.0.0.1:28332
    zmqpubhashblock=tcp://127.0.0.1:28332
    rpcallowip=127.0.0.1
    rpcuser=user
    rpcpassword=password
    rpcport=18332
    reindex=1
    gen=0
    addrindex=1
    logevents=1
    
  7. Run Node

    $(npm bin)/qtumcore-node start
    
  8. Open a web browser to http://localhost:3001/qtum-explorer or http://localhost:3001/qtum-insight-api

Development

To run Insight UI locally in development mode:

Install bower dependencies:

$ bower install

To compile and minify the web application's assets:

$ grunt compile

There is a convenient Gruntfile.js for automation during editing the code

$ grunt

Multilanguage support

Insight UI uses angular-gettext for multilanguage support.

To enable a text to be translated, add the translate directive to html tags. See more details here. Then, run:

grunt compile

This action will create a template.pot file in po/ folder. You can open it with some PO editor (Poedit). Read this guide to learn how to edit/update/import PO files from a generated POT file. PO file will be generated inside po/ folder.

If you make new changes, simply run grunt compile again to generate a new .pot template and the angular javascript js/translations.js. Then (if use Poedit), open .po file and choose update from POT File from Catalog menu.

Finally changes your default language from public/src/js/config

gettextCatalog.currentLanguage = 'es';

This line will take a look at any *.po files inside po/ folder, e.g. po/es.po, po/nl.po. After any change do not forget to run grunt compile.

Note

For more details about the QTUM API configuration and end-points, go to QTUM API.

Contribute

Contributions and suggestions are welcomed at the Explorer GitHub repository.

License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

qtum-explorer's People

Contributors

kseniyaromanchik avatar lychees avatar viktor32 avatar vkrasutsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qtum-explorer's Issues

部署error

本地测试环境:
#node -v
v6.13.1
#npm -v
3.10.10
#cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"

root@10-7-1-96:/data# npm install qtumcore-node
[..................] \ normalizeTree: sill install loadCurrentTree
[..................] | normalizeTree: sill install loadCurrentTree
npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] node installArchSpecificPackage /data/node_modules/.staging/node-a1dabf92
npm WARN enoent ENOENT: no such file or directory, open '/data/package.json'
npm WARN data No description
npm WARN data No repository field.
npm WARN data No README data
npm WARN data No license field.
npm ERR! Linux 4.4.0-112-generic
npm ERR! argv "/root/.nvm/versions/node/v6.13.1/bin/node" "/root/.nvm/versions/node/v6.13.1/bin/npm" "install" "qtumcore-node"
npm ERR! node v6.13.1
npm ERR! npm v3.10.10
npm ERR! path /data/node_modules/node/bin/node
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/data/node_modules/node/bin/node'
npm ERR! enoent ENOENT: no such file or directory, chmod '/data/node_modules/node/bin/node'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /data/npm-debug.log

$(npm bin)/qtumcore-node start

$(npm bin)/qtumcore-node start

http://localhost:3001/qtum-explorer

Unable to connect

Firefox can’t establish a connection to the server at localhost:3001.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

private repository ??

npm ERR! git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b: Cloning into bare repository '/Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b'...
npm ERR! git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b: ERROR: Repository not found.
npm ERR! git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b:
npm ERR! git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b: and the repository exists.
npm ERR! Darwin 17.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "git+ssh://[email protected]:qtumproject/qtumcore-node.git#master"
npm ERR! node v6.11.3
npm ERR! npm  v3.10.10
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/xingcheng/.npm/_git-remotes/_templates --mirror ssh://[email protected]/qtumproject/qtumd-rpc.git /Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b
npm ERR! Cloning into bare repository '/Users/xingcheng/.npm/_git-remotes/git-ssh-git-github-com-qtumproject-qtumd-rpc-git-87ef8c9b'...
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xingcheng/Desktop/qtum/npm-debug.log

Missing Transactions

Some block reward sequences are not showing correctly, they are missing some transactions.

Look at block 66353 for address Qi4fKw7iggp3o1MhwsURybmWkRwvq9j65z. The Explorer shows only 7 of the follow on 0.4 payments instead of 9 (after the coinstake) and a total number of transactions of 29. The other explorer shows this correctly (9 follow on payments and 31 total transactions).

Also the Final Balance is low.

Labeling on Stats Page

On the Stats page https://explorer.qtum.org/stats, the section “Hash Rate and Electricity Consumption” should say something like “Difficulty and Percent Staked”. I think Hash Rate and Electricity are bitcoin issues. If you want to make the Percent Staked chart more accessible, you could make it Average Stake Size per Day.

Bitcoin reference on Difficulty Page

On the Difficulty page, the second sentence should say “The difficulty is adjusted with every block to maintain an average block target spacing of 128 seconds.” The current second sentence is about bitcoin. Qtum adjusts the Difficulty (adjusts the Target) for every block.

Current text:

difficulty text

Audio File for Explorer

The Qtum Explorer uses an .mp3 file "BIT"

Can you reliably reproduce the issue?

Yes
If so, please list the steps to reproduce below:

  1. On the Qtum Explorer go to an address page for an active wallet address, like https://explorer.qtum.org/address/QQujfYYrEd3G3bwjZWiBRzyxYwmvK3fyRy , and wait for the next transaction.
  2. When a transaction arrives, the audio will spell out "BIT" in Morse code.

Expected behavior

When QTUM are received to an address on https://explorer.qtum.org/ it has an audio playback in Morse code for "bit", which is really cool but doesn't seem appropriate for Qtum.

Attached are edited .mp3 files to spell out "QTUM" in Morse code, with the frequency, amplitude and sampling rate identical to the original. The “QTUM” file is a little bigger and it plays back a little longer because the Morse code letters are longer. Please let me know if this is a problem and I can make a version at a faster words-per-minute which would be smaller and quicker.

If you could please take the zipped new file "transaction QTUM.mp3" and rename to "transaction.mp3" and replace the original. For comparison, I’m also attaching the current file “transaction.mp3”.

transaction.QTUM.zip

transaction.zip

What version of Qtum are you using?

This is an issue with the explorer.qtum.org Web site.

Machine specs:

Any PC with audio.

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.