Commit 920aa20b authored by George Hotz's avatar George Hotz

revert unneeded vm mods

parent f948f078
...@@ -9,10 +9,49 @@ common/bytes.go ...@@ -9,10 +9,49 @@ common/bytes.go
common/size.go common/size.go
common/types.go common/types.go
#consensus/ethash/fake_ethash.go
consensus/misc/eip1559.go consensus/misc/eip1559.go
consensus/misc/gaslimit.go consensus/misc/gaslimit.go
consensus/consensus.go consensus/consensus.go
#core/state/snapshot/snapshot.go
core/state/access_list.go
#core/state/database.go
core/state/journal.go
#core/state/state_object.go -- has oracle stuff in it
#core/state/statedb.go -- uses rawdb
core/types/access_list_tx.go
core/types/block.go
core/types/bloom9.go
core/types/dynamic_fee_tx.go
core/types/hashing.go
core/types/legacy_tx.go
core/types/log.go
core/types/receipt.go
core/types/transaction_signing.go
core/types/transaction.go
core/vm/analysis.go
core/vm/common.go
core/vm/contract.go
core/vm/contracts.go
core/vm/eips.go
core/vm/errors.go
core/vm/evm.go
core/vm/gas_table.go
core/vm/gas.go
core/vm/instructions.go
core/vm/interface.go
#core/vm/interpreter.go
core/vm/jump_table.go
core/vm/memory_table.go
core/vm/memory.go
core/vm/opcodes.go
core/vm/operations_acl.go
core/vm/stack_table.go
core/vm/stack.go
rpc/errors.go rpc/errors.go
rpc/json.go rpc/json.go
rpc/types.go rpc/types.go
...@@ -25,7 +25,6 @@ import ( ...@@ -25,7 +25,6 @@ import (
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/crypto/blake2b" "github.com/ethereum/go-ethereum/crypto/blake2b"
"github.com/ethereum/go-ethereum/crypto/bls12381" "github.com/ethereum/go-ethereum/crypto/bls12381"
"github.com/ethereum/go-ethereum/crypto/bn256" "github.com/ethereum/go-ethereum/crypto/bn256"
......
...@@ -48,10 +48,6 @@ type operation struct { ...@@ -48,10 +48,6 @@ type operation struct {
returns bool // determines whether the operations sets the return data content returns bool // determines whether the operations sets the return data content
} }
func (o *operation) SetExecute(f executionFunc) {
o.execute = f
}
var ( var (
frontierInstructionSet = newFrontierInstructionSet() frontierInstructionSet = newFrontierInstructionSet()
homesteadInstructionSet = newHomesteadInstructionSet() homesteadInstructionSet = newHomesteadInstructionSet()
......
...@@ -50,11 +50,6 @@ func (st *Stack) Data() []uint256.Int { ...@@ -50,11 +50,6 @@ func (st *Stack) Data() []uint256.Int {
return st.data return st.data
} }
func (st *Stack) Push(d *uint256.Int) {
// NOTE push limit (1024) is checked in baseCheck
st.data = append(st.data, *d)
}
func (st *Stack) push(d *uint256.Int) { func (st *Stack) push(d *uint256.Int) {
// NOTE push limit (1024) is checked in baseCheck // NOTE push limit (1024) is checked in baseCheck
st.data = append(st.data, *d) st.data = append(st.data, *d)
...@@ -64,12 +59,6 @@ func (st *Stack) pushN(ds ...uint256.Int) { ...@@ -64,12 +59,6 @@ func (st *Stack) pushN(ds ...uint256.Int) {
st.data = append(st.data, ds...) st.data = append(st.data, ds...)
} }
func (st *Stack) Pop() (ret uint256.Int) {
ret = st.data[len(st.data)-1]
st.data = st.data[:len(st.data)-1]
return
}
func (st *Stack) pop() (ret uint256.Int) { func (st *Stack) pop() (ret uint256.Int) {
ret = st.data[len(st.data)-1] ret = st.data[len(st.data)-1]
st.data = st.data[:len(st.data)-1] st.data = st.data[:len(st.data)-1]
......
#!/bin/bash #!/bin/bash
FILES=$(cat files_minigeth) FILES=$(grep -v "#" files_minigeth)
MINIGETH=$PWD/minigeth MINIGETH=$PWD/minigeth
git clone https://github.com/ethereum/go-ethereum.git git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum cd go-ethereum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment