electrum-server icon indicating copy to clipboard operation
electrum-server copied to clipboard

ZeroDivisionError: float division by zero

Open webdawg opened this issue 9 years ago • 4 comments

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 avatar Mar 20 '16 18:03 webdawg

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 avatar Mar 20 '16 18:03 webdawg

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

webdawg avatar Mar 21 '16 00:03 webdawg

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 avatar Mar 30 '16 17:03 webdawg

#155 proposed

webdawg avatar Mar 31 '16 05:03 webdawg