forked from mirror/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
289 B
16 lines
289 B
8 years ago
|
// +build VERIFY_EVM_INTEGER_POOL
|
||
|
|
||
|
package vm
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
const verifyPool = true
|
||
|
|
||
|
func verifyIntegerPool(ip *intPool) {
|
||
|
for i, item := range ip.pool.data {
|
||
|
if item.Cmp(checkVal) != 0 {
|
||
|
panic(fmt.Sprintf("%d'th item failed aggressive pool check. Value was modified", i))
|
||
|
}
|
||
|
}
|
||
|
}
|