Skip to content

Vision: Upgrade code via delta.  #366

Open
@gui1117

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

No one assigned

    Labels

    I5-enhancementAn additional feature request.T1-FRAMEThis PR/Issue is related to core FRAME, the framework.

    Type

    No type

    Projects

    • Status

      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions