Open
Description
Context
instead of just having srml-system::set_code we could introduce a new extrinsic which allows to send a delta to apply to the current code.
Interest
- the extrinsic to change the code can be in some situation way smaller.
- the LLVM compilation can't be really predicted but maybe if code is organized in a way and if delta algorithm is ok we can achieve having the delta very small in case of just changing a constant defined with
parameter_type!
- the logic on chain can cost a bit more but seems ok.
Unknown variables:
- finding a binary delta algorithm for our usecase
- maybe we have to tell LLVM to not inline some stuff to actually being to have a small delta for small constant change.
- this feature is quite unpredictable and this unpredictability might make this feature not wanted at all. and a proper predictable mecanism should be prefered
Metadata
Assignees
Type
Projects
Status
Backlog