CoreVerifier
setup does not compute total_stake
correctly
#1306
Labels
CoreVerifier
setup does not compute total_stake
correctly
#1306
Why
The
Coreverifer
of themithril-stm
does not correctly compute thetotal_stake
during thesetup
: this can lead to division by zero when thenum-integer-backend
is used.What
The
total_stake
variable is not mutable and is always0
when returned by thesetup
function:The
rug
backend does not detect a division by zero, probably because it is converted to a float before dividing.How
total_stake
when creating theCoreVerifier
total_stake
The text was updated successfully, but these errors were encountered: