mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
core/vm: remove empty lines
This commit is contained in:
parent
16f2aabc64
commit
ee5dd8673f
3 changed files with 0 additions and 5 deletions
|
|
@ -47,7 +47,6 @@ var commonParams []*twoOperandParams
|
||||||
var twoOpMethods map[string]executionFunc
|
var twoOpMethods map[string]executionFunc
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
||||||
// Params is a list of common edgecases that should be used for some common tests
|
// Params is a list of common edgecases that should be used for some common tests
|
||||||
params := []string{
|
params := []string{
|
||||||
"0000000000000000000000000000000000000000000000000000000000000000", // 0
|
"0000000000000000000000000000000000000000000000000000000000000000", // 0
|
||||||
|
|
@ -93,7 +92,6 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func testTwoOperandOp(t *testing.T, tests []TwoOperandTestcase, opFn executionFunc, name string) {
|
func testTwoOperandOp(t *testing.T, tests []TwoOperandTestcase, opFn executionFunc, name string) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
env = NewEVM(BlockContext{}, TxContext{}, nil, nil, params.TestChainConfig, Config{})
|
env = NewEVM(BlockContext{}, TxContext{}, nil, nil, params.TestChainConfig, Config{})
|
||||||
stack = newstack()
|
stack = newstack()
|
||||||
|
|
@ -648,7 +646,6 @@ func TestCreate2Addreses(t *testing.T) {
|
||||||
expected: "0xE33C0C7F7df4809055C3ebA6c09CFe4BaF1BD9e0",
|
expected: "0xE33C0C7F7df4809055C3ebA6c09CFe4BaF1BD9e0",
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
|
|
||||||
origin := common.BytesToAddress(common.FromHex(tt.origin))
|
origin := common.BytesToAddress(common.FromHex(tt.origin))
|
||||||
salt := common.BytesToHash(common.FromHex(tt.salt))
|
salt := common.BytesToHash(common.FromHex(tt.salt))
|
||||||
code := common.FromHex(tt.code)
|
code := common.FromHex(tt.code)
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,6 @@ func NewEVMInterpreter(evm *EVM, cfg Config) *EVMInterpreter {
|
||||||
// considered a revert-and-consume-all-gas operation except for
|
// considered a revert-and-consume-all-gas operation except for
|
||||||
// ErrExecutionReverted which means revert-and-keep-gas-left.
|
// ErrExecutionReverted which means revert-and-keep-gas-left.
|
||||||
func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (ret []byte, err error) {
|
func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (ret []byte, err error) {
|
||||||
|
|
||||||
// Increment the call depth which is restricted to 1024
|
// Increment the call depth which is restricted to 1024
|
||||||
in.evm.depth++
|
in.evm.depth++
|
||||||
defer func() { in.evm.depth-- }()
|
defer func() { in.evm.depth-- }()
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,6 @@ func benchmarkNonModifyingCode(gas uint64, code []byte, name string, b *testing.
|
||||||
// BenchmarkSimpleLoop test a pretty simple loop which loops until OOG
|
// BenchmarkSimpleLoop test a pretty simple loop which loops until OOG
|
||||||
// 55 ms
|
// 55 ms
|
||||||
func BenchmarkSimpleLoop(b *testing.B) {
|
func BenchmarkSimpleLoop(b *testing.B) {
|
||||||
|
|
||||||
staticCallIdentity := []byte{
|
staticCallIdentity := []byte{
|
||||||
byte(vm.JUMPDEST), // [ count ]
|
byte(vm.JUMPDEST), // [ count ]
|
||||||
// push args for the call
|
// push args for the call
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue