8000 GitHub - icook/lincoln: A lightweight block explorer · GitHub
[go: up one dir, main page]

Skip to content
{"props":{"color_mode":"dark","logged_in":false,"marketing_page":false,"home_path":"/","login_path":"/login?return_to=https%3A%2F%2FGitHub.com%2Ficook%2Flincoln","signup_path":"/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\u0026source_repo=icook%2Flincoln","signup_enabled":true,"is_signup_controller":false,"show_search_and_nav":true,"hide_search":false,"private_mode_enabled":false,"should_use_dotcom_links":true,"auth_hydro_click":"{\"event_type\":\"authentication.click\",\"payload\":{\"location_in_page\":\"site header menu\",\"repository_id\":null,\"auth_type\":\"SIGN_UP\",\"originating_url\":\"https://GitHub.com/icook/lincoln\",\"user_id\":null}}","auth_hydro_click_hmac":"7cd74a8899849df0d188713e4d861dd19d6d30e71c401ea8dae226c0b724be93"}}
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
icookPublic archive

About

A lightweight block explorer

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

Repository files navigation

Lincoln

A lightweight block explorer. Meant to be an improvement over Abe (hence the name). Design goals:

  • Straightforward to setup with minimal dependencies
  • Reasonable space consumption
  • Clean, well written codebase for hackabilitiy.

Lincoln is still very much under development, so keep in mind that things may be a bit bumpy. Several key features are still missing!

Transaction View Screenshot

Stack

  • Python 3.2+
  • Flask
  • SQLAlchemy
  • python-bitcoinlib
  • Redis
  • Gunicorn (although an WSGI server will work)

Missing Key Features

  • Block reorgs aren't handled properly. A complete reindex is required.
  • Sync status isn't shown, so the site may look oddly out of date if connection is lost or doing initial sync.
  • There are no API endpoints, just a UI
  • The address overview page is lacking a lot of information.

Setup

# Python 3.4 is highly preferred due to decimal support
mkvirtualenv lincoln --python /usr/bin/python3.4
pip install -r requirements.txt
pip install -e .

Now copy example.yml to config.yml and enter your RPC information.

# Initialize the database
python manage.py init_db
# To run the webserver
python manage.py runserver
# To sync the blockchain
python manage.py sync

Production

To setup Lincoln on an Ubuntu box, follow these recommendations:

The chain sync chrontab should look something like this:

*/1 * * * * /usr/bin/flock -n /tmp/litecoin_scan.lockfile /path/to/my/virtualenv/bin/python /path/to/repo/manage.py sync >> /home/block/sync.log

An upstart config for the webserver would look something like this:

start on (filesystem)
stop on runlevel [016]

respawn
console log
setuid block
setgid block
chdir /home/block/lincoln

exec /home/block/lincoln_venv/bin/gunicorn lincoln.wsgi_entry:app -b 127.0.0.1:11000 --timeout 270

About

A lightweight block explorer

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0