Conversation
- Restore appending executed script hashes - apply AltStack replication fixes of neo-project/neo-vm@59f3e66
- fix CheckStackSize: neo-project/neo@e8c5e03 - fix CheckDynamicInvoke: neo-project/neo@b8ad89e and general update to checkstacksize as it was lagging behind
limit arraysize in 'block.gettransactions' neo-project/neo@9660630 limit itemsize in 'runtime_serialize' neo-project/neo@5894cbd
fix missed statement
add description for new stack isolation instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find on the CALL_E(D). I knew some extra tests would be handy after all :)
neo/Settings.py
Outdated
@@ -203,6 +205,9 @@ def setup(self, config_file): | |||
if 'ServiceEnabled' in config: | |||
self.SERVICE_ENABLED = bool(config['ServiceEnabled']) | |||
|
|||
if 'CompilerNep8' in config: | |||
self.COMPILER_NEP_8 = bool(config['CompilerNep8']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to suggest to at least use config.get('CompilerNep8', False)
because the AcceptIncomingPeers
update showed that quite some users just copy/replace their configs with their old one after they upgraded. Then this call will fail because the key is not there. Ideally we might want to have a utility function that tries to get the key, if not uses a specified default value but also warns the user that the key was not found and is now using the "x" as the default.
🥇 |
What current issue(s) does this address, or what feature is it adding?
This addresses #585, and supersedes #603. It adds in NEP8 functionality from here: CityOfZion/neo-boa#94
Also makes usage of NEP8 compiler features configurable via
protocol.json
and from the prompt, with the default value beingFalse
until NEP8 is on mainnet. From the prompt, you can useconfig compiler-nep8 on|off
How did you solve this problem?
How did you make sure your solution works?
Are there any special changes in the code that we should be aware of?
Please check the following, if applicable:
make lint
?make test
?CHANGELOG.rst
? (if not, please do)