From 1f2a1b34bda8c28fdd7487ce2e905014d1f122e6 Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Mon, 19 Nov 2018 11:43:40 +0530 Subject: [PATCH] add runtime validator contract call --- core/vm/runtime/env.go | 20 ++------------------ core/vm/runtime/runtime.go | 20 ++------------------ core/vm/runtime/runtime_test.go | 20 ++------------------ 3 files changed, 6 insertions(+), 54 deletions(-) diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index 31c9b9cf9d..c7f13d34ff 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -1,20 +1,4 @@ -// Copyright 2015 The go-ethereum Authors -// This file is part of the go-ethereum library. -// -// The go-ethereum library is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// The go-ethereum library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with the go-ethereum library. If not, see . - -package runtime +package validator import ( "github.com/ethereum/go-ethereum/common" @@ -38,4 +22,4 @@ func NewEnv(cfg *Config) *vm.EVM { } return vm.NewEVM(context, cfg.State, cfg.ChainConfig, cfg.EVMConfig) -} +} \ No newline at end of file diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index 1e9ed7ae2d..8a60c9cf95 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -1,20 +1,4 @@ -// Copyright 2015 The go-ethereum Authors -// This file is part of the go-ethereum library. -// -// The go-ethereum library is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// The go-ethereum library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with the go-ethereum library. If not, see . - -package runtime +package validator import ( "math" @@ -169,4 +153,4 @@ func Call(address common.Address, input []byte, cfg *Config) ([]byte, uint64, er ) return ret, leftOverGas, err -} +} \ No newline at end of file diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 2c4dc50265..88b96accec 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -1,20 +1,4 @@ -// Copyright 2015 The go-ethereum Authors -// This file is part of the go-ethereum library. -// -// The go-ethereum library is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// The go-ethereum library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with the go-ethereum library. If not, see . - -package runtime +package validator import ( "math/big" @@ -148,4 +132,4 @@ func BenchmarkCall(b *testing.B) { Execute(code, refund, nil) } } -} +} \ No newline at end of file