Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

[Superhack-01]Add opcode to geth: experiment with constant return value #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jeff0723
Copy link

@jeff0723 jeff0723 commented Aug 7, 2023

Description:
This PR added an opcode INFERCALL to geth, including modifying the below file:

  1. Add an execution function to core/vm/instruction.go
  2. Add an opcode to core/vm/opcodes.go
  3. Add an dynamic gas function which return constant value to core/vm/gas_table.go
  4. Register new opcode in core/vm/jump_table.go

Todo:
Run this updated version of geth and write a smart contract to check if it is working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant