Skip to content

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

License

Notifications You must be signed in to change notification settings

viacoin/docker-electrumx-flushcount-meme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%