aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/int_pool_verifier.go
blob: 61c83ba7e9cd196beb8903cee7d29d161cc928aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +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))
        }
    }
}