Documentation ¶
Index ¶
- Constants
- Variables
- func CompareMap(defaultMap map[interface{}]interface{}, newMap map[interface{}]interface{}) map[interface{}]interface{}
- func Encode(b []byte) string
- func GetColorStr(color string, isHighLighted bool, str string) string
- func GetInToStr(value interface{}) string
- func GetRandomStr(num int) string
- func ReadFileLine(path string) []string
- func ReadYaml(path string) map[interface{}]interface{}
- func ScheduleTask()
- func SetTime(hour, min, second int) (d time.Duration)
- func WriteFileLine(path string, str string)
- type Address
- type Hash
- type Jobs
- type OpCode
- type Pool
Constants ¶
View Source
const ( // hash长度 HashLength = 32 // 地址值长度 AddressLength = 20 //合同创建 gas TxGasContractCreation uint64 = 53000 //交易 gas TxGas uint64 = 21000 //交易数据非零gas限制 TxDataNonZeroGasFrontier uint64 = 68 //eip2028类型gas限制 TxDataNonZeroGasEIP2028 uint64 = 16 TxDataZeroGas uint64 = 4 )
定义hash和地址长度byte
View Source
const ( CallCreateDepth uint64 = 1024 // 最大深度 EcrecoverGas uint64 = 3000 //椭圆曲线算法返回gas价格 )
Variables ¶
View Source
var (
Big0 = big.NewInt(0)
)
Functions ¶
func CompareMap ¶
func CompareMap(defaultMap map[interface{}]interface{}, newMap map[interface{}]interface{}) map[interface{}]interface{}
func GetInToStr ¶
func GetInToStr(value interface{}) string
func GetRandomStr ¶
func ReadFileLine ¶
func ScheduleTask ¶
func ScheduleTask()
func WriteFileLine ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.