github.com/devfans/go-ethereum@v1.5.10-0.20170326212234-7419d0c38291/core/vm/int_pool_verifier.go (about)

     1  // +build VERIFY_EVM_INTEGER_POOL
     2  
     3  package vm
     4  
     5  import "fmt"
     6  
     7  const verifyPool = true
     8  
     9  func verifyIntegerPool(ip *intPool) {
    10  	for i, item := range ip.pool.data {
    11  		if item.Cmp(checkVal) != 0 {
    12  			panic(fmt.Sprintf("%d'th item failed aggressive pool check. Value was modified", i))
    13  		}
    14  	}
    15  }