mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-26 13:18:22 +00:00
16 lines
289 B
Go
16 lines
289 B
Go
|
// +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))
|
||
|
}
|
||
|
}
|
||
|
}
|