github.com/linapex/ethereum-go-chinese@v0.0.0-20190316121929-f8b7a73c3fa1/core/vm/int_pool_verifier.go (about) 1 2 //<developer> 3 // <name>linapex 曹一峰</name> 4 // <email>linapex@163.com</email> 5 // <wx>superexc</wx> 6 // <qqgroup>128148617</qqgroup> 7 // <url>https://jsq.ink</url> 8 // <role>pku engineer</role> 9 // <date>2019-03-16 19:16:36</date> 10 //</624450082711801856> 11 12 13 //+生成验证\ evm \整数\池 14 15 package vm 16 17 import "fmt" 18 19 const verifyPool = true 20 21 func verifyIntegerPool(ip *intPool) { 22 for i, item := range ip.pool.data { 23 if item.Cmp(checkVal) != 0 { 24 panic(fmt.Sprintf("%d'th item failed aggressive pool check. Value was modified", i)) 25 } 26 } 27 } 28