Giter Club home page Giter Club logo

electrumx-banner-updater's Introduction

ElectrumX Banner Updater

This script can be used to update the ElectrumX banner file to contain information about memory pool and fees.

ElectrumX server:
https://github.com/kyuupichan/electrumx
Bitcoin Core daemon:
https://github.com/bitcoin/bitcoin

Getting Started

The first time you run this script your original banner file will be copied to ${BANNER}.template.

On each subsequent run ${BANNER}.template will be used as the top portion of the new banner.

If you wish to change your banner you should edit ${BANNER}.template.

Edit update-electrumx-banner:

  • Adjust the BITCOIN_DATADIR environment to specify where to find your bitcoin data directory.
  • Adjust the BITCOIN_CLI environment to specify where to find bitcoin-cli.
  • Adjust the BANNER environment to specify the your electrumx banner file.

Scheduled Update:

Run crontab -e and add a cron job to update the banner every 2 minutes.

*/2 * * * *  /path/to/update-electrumx-banner

Versions

This script is working with the following software versions:

Operating System:   Ubuntu 18.04
ElectrumX:          1.11.0
Bitcoin Core:       0.17.1
Bitcoin ABC:        0.18.4
Bitcoin SV:         0.10.0

Live Example

You can see an example here:
http://vps.hsmiths.com:49001/banner

Samuel Smith [email protected] https://github.com/shsmith

electrumx-banner-updater's People

Contributors

shsmith avatar

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.