Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Move VM Limits to NeoVM #75

Merged
merged 72 commits into from
Mar 5, 2019
Merged

Conversation

shargon
Copy link
Member

@shargon shargon commented Jan 10, 2019

Related to #73

  • TODO: Review MaxStackSize

- TODO: `MaxStackSize`
@igormcoelho
Copy link
Contributor

Amazing change Shargon, Im reviewing..

Copy link
Contributor

@igormcoelho igormcoelho left a comment

Choose a reason for hiding this comment

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

Finished the review @shargon! Sorry for the many comments, most are related to a single issue... so don't worry about of all them exactly... once reviewing we will decide how to solve the possible inconsistencies. Congratulations for the amazing work, as always!

src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
src/neo-vm/ExecutionEngine.cs Outdated Show resolved Hide resolved
@igormcoelho igormcoelho dismissed their stale review January 15, 2019 17:31

Nice changes, I'll dismiss my current review, and re-review, with new ideas on mind. Now, I'll consider that CheckStackSize automatically increases variable.

@shargon
Copy link
Member Author

shargon commented Jan 18, 2019

@erikzhang any idea how we can remove is_stackitem_count_strict ? we could save a counter inside the array and map?

@erikzhang
Copy link
Member

I have not found a good way to do this for the time being.

@shargon
Copy link
Member Author

shargon commented Feb 21, 2019

@erikzhang I want to add these unit tests https://github.com/CityOfZion/neo-sharp/tree/development/test/NeoSharp.VM.Test/Tests/OpCodes but these tests was prepared for check the Gas cost, scripts, storages. Shall i put this test in neo project or simplify the tests?

@erikzhang
Copy link
Member

Can we remove the gas related content from the test?

@shargon
Copy link
Member Author

shargon commented Feb 21, 2019

Yes, i will!

@erikzhang
Copy link
Member

Let's do some test and merge it.

@igormcoelho
Copy link
Contributor

igormcoelho commented Feb 25, 2019

I'll take a look tomorrow night, to re-review the improved logics.

@erikzhang
Copy link
Member

@shargon Tests failed.

@erikzhang
Copy link
Member

@shargon Is it ready to merge?

@shargon
Copy link
Member Author

shargon commented Mar 5, 2019

Is ready for me, i want to add more UT, but in other PR, will be great if we can configure a coverage report like codecov.

@erikzhang erikzhang merged commit 080da7c into neo-project:master Mar 5, 2019
@shargon shargon deleted the move-limits branch March 5, 2019 08:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants