Skip to content

Proper gas calculation#33

Open
alexdovzhanyn wants to merge 13 commits intoedgefrom
instruction-gas
Open

Proper gas calculation#33
alexdovzhanyn wants to merge 13 commits intoedgefrom
instruction-gas

Conversation

@alexdovzhanyn
Copy link
Copy Markdown
Owner

@alexdovzhanyn alexdovzhanyn commented Feb 14, 2019

This PR solves #19 and introduces everything in #32 along with:

  • A new gas module whose purpose is to return the gas cost for a given OpCode
  • Changes to the executor file to use the new gas module
  • A small paper explaining how the gas cost of each OpCode is calculated

@fantypants
Copy link
Copy Markdown
Collaborator

Let me know when you want to merge it, i'll review & then merge, then I can use this as a clean base for the opcode fix from before

@alexdovzhanyn
Copy link
Copy Markdown
Owner Author

@fantypants this won't be ready for merge for a while. I think using the current master for the fix should be fine, should be a change in a different file I believe, not in executor.ex

@alexdovzhanyn alexdovzhanyn changed the base branch from master to edge February 21, 2019 00:10
@alexdovzhanyn alexdovzhanyn marked this pull request as ready for review February 21, 2019 00:10
WaspVM.HostFunction.API.update_memory(ctx, "memory1", 32, <<75, 20, 102, 0>>) # 6689867
end

defhost function1 do
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this Legacy/Ready For Removal?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe so, pretty sure these functions are being used by the tests somewhere

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.

2 participants