Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BESU-648] EIP2315 - Simple Subroutines for the EVM #717

Merged
merged 10 commits into from
Apr 20, 2020

Conversation

matkt
Copy link
Contributor

@matkt matkt commented Apr 15, 2020

Signed-off-by: Karim TAAM karim.t2am@gmail.com

PR description

Issue : #648

Implementation of the EIP-2315 (Simple Subroutines for the EVM)

  • Creation of a ReturnStack (privateTransactionProcessor, transactionProcessor)
  • Implementation of the three new operations (JUMPSUB, BEGINSUB, RETURNSUB)

Sample

This should execute fine, going into one two depths of subroutines

  • 0x6800000000000000000cb300b26011b3b7b2b7

2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: PUSH9
PC: 0
Gas cost: 3
Gas Remaining: 16756198
Depth: 0
Stack:
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: JUMPSUB
PC: 10
Gas cost: 8
Gas Remaining: 16756195
Depth: 0
Stack:
0 0x000000000000000000000000000000000000000000000000000000000000000c
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: BEGINSUB
PC: 12
Gas cost: 1
Gas Remaining: 16756187
Depth: 0
Stack:
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: PUSH1
PC: 13
Gas cost: 3
Gas Remaining: 16756186
Depth: 0
Stack:
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: JUMPSUB
PC: 15
Gas cost: 8
Gas Remaining: 16756183
Depth: 0
Stack:
0 0x0000000000000000000000000000000000000000000000000000000000000011
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: BEGINSUB
PC: 17
Gas cost: 1
Gas Remaining: 16756175
Depth: 0
Stack:
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: RETURNSUB
PC: 18
Gas cost: 2
Gas Remaining: 16756174
Depth: 0
Stack:
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: RETURNSUB
PC: 16
Gas cost: 2
Gas Remaining: 16756172
Depth: 0
Stack:
2020-04-15 10:25:13.522+02:00 | main | TRACE | EVM | Depth: 0
Operation: STOP
PC: 11
Gas cost: 0
Gas Remaining: 16756170
Depth: 0
Stack:

shemnon and others added 8 commits April 8, 2020 10:37
When we deny a connection based on HTTP hostname log to trace the
rejected value.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Co-authored-by: Usman Saleem <usman@usmans.info>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
…elop

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
…eip-2315

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>

# Conflicts:
#	config/src/main/java/org/hyperledger/besu/config/JsonGenesisConfigOptions.java
#	config/src/main/java/org/hyperledger/besu/config/StubGenesisConfigOptions.java
#	config/src/test/java/org/hyperledger/besu/config/GenesisConfigOptionsTest.java
#	ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolSpecs.java
#	ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/ProtocolScheduleBuilder.java
#	ethereum/core/src/test/java/org/hyperledger/besu/ethereum/vm/ReferenceTestProtocolSchedules.java
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
@matkt matkt marked this pull request as ready for review April 15, 2020 09:46
Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants