56946 bc insight the code comparing two big in pointers for equality not their numeric values
Description
currentBGP, err := builtin.Params.Native(newState).Get(thor.KeyLegacyTxBaseGasPrice)
if err != nil {
return errors.WithMessage(err, "failed to get the current base gas price")
}
if currentBGP == baseGasPrice { // <-- BUG: pointer comparison, almost never true
return nil
}Proof of Concept
Previous57021 bc insight lack of panic recovery in housekeeping goroutine creates potential for denial of serviceNext56761 bc insight the check for integer overflow in the function staker go checkstake is incorrect
Was this helpful?