add runtime validator contract call

This commit is contained in:
AnilChinchawale 2018-11-19 11:43:40 +05:30
parent da0e51f4b9
commit 1f2a1b34bd
3 changed files with 6 additions and 54 deletions

View file

@ -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 <http://www.gnu.org/licenses/>.
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)
}
}

View file

@ -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 <http://www.gnu.org/licenses/>.
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
}
}

View file

@ -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 <http://www.gnu.org/licenses/>.
package runtime
package validator
import (
"math/big"
@ -148,4 +132,4 @@ func BenchmarkCall(b *testing.B) {
Execute(code, refund, nil)
}
}
}
}