internet-sicherheit / ethereum-cache-creator

GNU General Public License v3.0
0 stars 0 forks source link

Find out about negative transactioncounts #2

Open Mschnuff opened 4 years ago

Mschnuff commented 4 years ago

For some reason negative transactioncounts sometimes show up. As of now there is no evidence that my program produces these numbers during the extraction process. Kevin suggests these negative numbers communicate a very specific kind of error.

negative graph

negativ_trans

kiview commented 4 years ago

Just a hunch, but are you converting to integers somewhere? Potential overflow into a negative number, although it would be weird that it is exactly -1.

General rules for Java integers is as follows:

If an integer addition overflows, then the result is the low-order bits of the mathematical sum as represented in some sufficiently large two's-complement format. If overflow occurs, then the sign of the result is not the same as the sign of the mathematical sum of the two operand values.