Code Monkey home page Code Monkey logo

docker-electrumx-flushcount-meme's Introduction

docker-electrumx-flushcount-meme

DB::flush_count overflow fix for ElectrumX servers running in a docker container

This shell script is for ElectrumX docker containers using https://github.com/lukechilds/docker-electrumx

This script is to solve the ElectrumX DB::flush_count overflow meme kyuupichan/electrumx#185

A flush_count would overflow after 455 days for Bitcoin. For altcoins with a faster blocktime it happens much quicker.

This script is originally written for Viacoin with a blocktime of 24 seconds (25x faster than Bitcoin so the flush count needs to be done more often.

Please use the right environment variables for your ElectrumX container

DAEMON_URL, COIN and -V

original usage from https://github.com/lukechilds/docker-electrumx

  -v /home/username/electrumx:/data \
  -e DAEMON_URL=http://user:pass@host:port \
  -e COIN=Viacoin \
  -p 50002:50002 \
  viacoin/electrumx

please note in this script -v is different:

-v /root/electrumx:/data \

You need to change this if you want it to work

TODO

  • flush
  • cronjob every x days to flush
  • make it easier to use

manual cronjob example to flush every day

sudo crontab -e

add to the end of the file

55 23 * * * /path/to/flushcount.sh

This script is for now only tested on Viacoin with VialectrumX fork

Feel free to contribute, this would help others running ElectrumX within a docker container

License

This tool is released under the terms of the MIT license. See COPYING for more information or see https://opensource.org/licenses/MIT.

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.