Replies: 5 comments 27 replies
-
There are two options.
option 1 is not possible unless increase block creation time in dpos. |
Beta Was this translation helpful? Give feedback.
-
If contract compilation takes so much time/resources, then the engine should charge more gas
It could charge way more gas when compilation is needed and less when not needed, to encourage developers to use another contract address instead of plain code when deploying a contract Also for the purpose of preventing a DoS attack with many deploys at the same time |
Beta Was this translation helpful? Give feedback.
-
The 250ms of block timeout have been set at the first of AERGO chain, and this works expectedly well almost all situations. Tx excution is canceled when the block timeout is reached since v2.4.0, but contains some bugs, which #262 fixed.#262 does not alter the specs of aergo node but preserve behaviors of previous version, actually. |
Beta Was this translation helpful? Give feedback.
-
It will result in huge works I think. It is required to change current consensus algorithm. |
Beta Was this translation helpful? Give feedback.
-
Why a tag was created on that PR if it still has pending changes to be done? It is better to resolve all things before, to make just a single sync test |
Beta Was this translation helpful? Give feedback.
-
The current method for timeout check may not be ideal
A fix is proposed on #262 but some problems are open for discussion, like this:
Contract Compilation
On V4 the smart contracts will be compiled by the aergo nodes, and some big contracts can take ~500ms to compile or even more
Contracts deployed by another contract are already compiled by the nodes on V3 and before, and these can take long time as well
This is the time for ARC1 contract factory:
But the current method is limiting transaction execution to only 250 milliseconds, including contract compilation... that is not sufficient
We need to handle these long executions in some way
Beta Was this translation helpful? Give feedback.
All reactions