Error creating address #761

Closed
opened 2015-01-08 16:14:27 +01:00 by AyrA · 2 comments
AyrA commented 2015-01-08 16:14:27 +01:00 (Migrated from github.com)

A print statement seems to create a division by 0 exception

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
    self.run()
  File "C:\AdminRoot\TBM\PyBitmessage\src\class_addressGenerator.py", line 101,in run
    print 'Address generator calculated', numberOfAddressesWeHadToMakeBeforeWeFoundOneWithTheCorrectRipePrefix, 'addresses at', numberOfAddressesWeHadToMakeBeforeWeFoundOneWithTheCorrectRipePrefix / (time.time() - startTime), 'addresses per second before finding one with the correct ripe-prefix.'
ZeroDivisionError: float division by zero

Sidenote: the dotimingattackmitigation was set to false

A print statement seems to create a division by 0 exception ``` Exception in thread Thread-1: Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner self.run() File "C:\AdminRoot\TBM\PyBitmessage\src\class_addressGenerator.py", line 101,in run print 'Address generator calculated', numberOfAddressesWeHadToMakeBeforeWeFoundOneWithTheCorrectRipePrefix, 'addresses at', numberOfAddressesWeHadToMakeBeforeWeFoundOneWithTheCorrectRipePrefix / (time.time() - startTime), 'addresses per second before finding one with the correct ripe-prefix.' ZeroDivisionError: float division by zero ``` Sidenote: the `dotimingattackmitigation` was set to false
AyrA commented 2015-01-08 16:35:17 +01:00 (Migrated from github.com)

For me this is a critical error, since the generatd address is never stored on the file, as the offending print statement is located before the code that saves the address.

The error seems to happen if the device is quick enough, that start and end time are on the same half second.

For me this is a critical error, since the generatd address is never stored on the file, as the offending print statement is located before the code that saves the address. The error seems to happen if the device is quick enough, that start and end time are on the same half second.
Atheros1 commented 2015-01-08 23:13:10 +01:00 (Migrated from github.com)

Thank you AyrA

Thank you AyrA
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-12-10#761
No description provided.