Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
92a81c2c
Commit
92a81c2c
authored
Jul 13, 2021
by
hezhengjun
Committed by
vipwzw
Jul 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
8ee12347
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
evm.go
plugin/dapp/evm/executor/vm/runtime/evm.go
+0
-5
No files found.
plugin/dapp/evm/executor/vm/runtime/evm.go
View file @
92a81c2c
...
...
@@ -34,12 +34,7 @@ type (
// 依据合约地址判断是否为预编译合约,如果不是,则全部通过解释器解释执行
func
run
(
evm
*
EVM
,
contract
*
Contract
,
input
[]
byte
,
readOnly
bool
)
(
ret
[]
byte
,
err
error
)
{
if
contract
.
CodeAddr
!=
nil
{
// 预编译合约以拜占庭分支为初始版本,后继如有分叉,需要在此处理
precompiles
:=
PrecompiledContractsBerlin
//预编译分叉处理: chain33中目前只存在拜占庭和最新的黄皮书v1版本(兼容伊斯坦布尔版本)
if
evm
.
cfg
.
IsDappFork
(
evm
.
StateDB
.
GetBlockHeight
(),
"evm"
,
evmtypes
.
ForkEVMYoloV1
)
{
//precompiles = PrecompiledContractsYoloV1
}
if
p
:=
precompiles
[
contract
.
CodeAddr
.
ToHash160
()];
p
!=
nil
{
ret
,
contract
.
Gas
,
err
=
RunPrecompiledContract
(
p
,
input
,
contract
.
Gas
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment