github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/chain/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  }