- 博客(4)
- 收藏
- 关注
原创 ethereum-go win7 64位编译
1.安装go语言 输入go version 输出go version go1.9.2表示成功 2. github:https://github.com/ethereum/go-ethereum dowmload zip到本地 目录结构 GOPATH/src ├── github.com │ └── ethereum │ └── go-ethereum └──
2018-01-20 10:32:07 2408
原创 go-ethereum/blob/master/core/vm/instructions.go
这里定义了许多操作,以几个例子来说明。 func opAdd(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) { x, y := stack.pop(), stack.pop() stack.push(math.U256(x.Add(x, y))) evm.in
2018-01-21 15:57:51 261
原创 go-ethereum/core/vm/stack_table.go
func makeStackFunc(pop, push int) stackValidationFunc { return func(stack *Stack) error { if err := stack.require(pop); err != nil { return err } if stack.len()+push-pop > int(params.StackL
2018-01-21 15:23:27 246
原创 go-ethereum/core/vm/stack.go
这个包是对虚拟机堆的定义,只用了fmt和math/big。 stack是堆栈操作的对象,出栈的Item被用作修改。 type Stack struct { data []*big.Int } 这里可以看到,栈结构是big.Int的数组。Stack由于开头是大写,所以可以被包外访问。 func newstack() *Stack { return &Stack{data: make([]
2018-01-21 15:05:42 307
树莓派zero引脚物理视图,逻辑视图
2022-10-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人