Skip to content

Conversation

huzhenyuan
Copy link
Contributor

What does this PR do?
1、bytecode会在部署时,被重新编译为runtime-bytecode,使用故意编造的有错误的bytecode,runtime-bytecode=0,这样在运行runtime-bytecode时,第一条OP是stop,就会正常结束VM的执行,以及执行正常的扣费逻辑。

2、通过智能合约执行投票等,会通过deposit对数据库进行修改。这样,当智能合约执行出现异常时,通过deposit对数据库进行修改也会发生回退。从而保证结果在不同节点上执行的一致性。

3、通过智能合约创建新智能合约时,新增的智能合约所占用的存储也会扣掉相应的Energy。

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

tjchern and others added 30 commits August 27, 2018 13:32
Add stack out by contract and Triple Trigger test case
Add value equal balance, the deploy will be failed
…de; 3. don't run vm when timeout in received block
@huzhenyuan huzhenyuan closed this Sep 4, 2018
@huzhenyuan huzhenyuan reopened this Sep 4, 2018
@huzhenyuan huzhenyuan closed this Sep 4, 2018
@huzhenyuan huzhenyuan reopened this Sep 4, 2018
wangzihe and others added 2 commits September 4, 2018 18:38
@huzhenyuan huzhenyuan merged commit 196d92e into master Sep 4, 2018
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.

8 participants