Open zsluedem opened 3 years ago
I think it is related, so mentioning here. @dckc reported that this deploy https://gist.github.com/dckc/9e04e4604498eab72410a487b6d28b8d ends up with this error No value set for rho:rchain:REVAddress. This is a bug in the normalizer or on the path from it.
All of the gas is consumed because that's the default behavior of RuntimeManager
for error-throwing processes. The error that I get is:"No value set for 'rho:block:timestamp'. This is a bug in the normalizer or on the path from it"
. It occurs in the evaluator when New
is evaluated. It's not really a bug because the expected behavior is that the program throws an error when it attempts to reference an undefined system process. As for deployInfo
, I agree that the error message should be returned, but that's not limited to this particular error.
Overview
when you deploy a contract like below
no matter how much phloLimit you put in the deploy, the node would always consume all the phlos because
blockData('rho:block:timestamp')
is not a valid system process.The deployInfo in the block should be like below
Although the deploy is marked as
errored=true
, the node should provide better error info for the errored deploy.Impact
Dependencies
Design
Need discussions.
Steps to implement the solution
Steps for integration testing
Resource estimation