Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

ZeroDivisionError: float division by zero #154

Open
webdawg opened this issue Mar 20, 2016 · 4 comments
Open

ZeroDivisionError: float division by zero #154

webdawg opened this issue Mar 20, 2016 · 4 comments

Comments

@webdawg
Copy link

webdawg commented Mar 20, 2016

Trying to get my electrum server synced and it keeps stopping with this error:

Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/lib/python2.7/site-packages/electrumserver/blockchain_processor.py", line 104, in do_catch_up
self.catch_up(sync=False)
File "/usr/lib/python2.7/site-packages/electrumserver/blockchain_processor.py", line 709, in catch_up
self.print_time(n)
File "/usr/lib/python2.7/site-packages/electrumserver/blockchain_processor.py", line 128, in print_time
tx_per_second = (1-alpha2) * tx_per_second + alpha2 * num_tx / delta
ZeroDivisionError: float division by zero

^CINFO:electrum:Stopping Stratum

I assume delta becomes zero at a point. Any ideas?

@webdawg
Copy link
Author

webdawg commented Mar 20, 2016

I see that it is part of some reporting, at the moment I am going to try this:

delta = time.time() - self.time_ref + 0000000000.000001

@webdawg
Copy link
Author

webdawg commented Mar 21, 2016

So far so good...running for 6 hrs.

@webdawg
Copy link
Author

webdawg commented Mar 30, 2016

Running for days. Anyone think this could have something to do with this: http://xenbits.xen.org/docs/4.3-testing/misc/tscmode.txt

I do have this running on an HVM xen box.

https://wiki.debian.org/Xen/Clocksource

@webdawg
Copy link
Author

webdawg commented Mar 31, 2016

#155 proposed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant