Giter VIP home page Giter VIP logo

Comments (1)

Stebalien avatar Stebalien commented on August 15, 2024

Anyone may unfreeze this actor by including all the state referenced by the frozen storage hash in a message and submitting enough funds to get it going again (possible minimum duration?).

Ideally, it would be possible to partially unfreeze an actor by only restoring part of the tree. However, we could do that by allowing actor "trees" (like process trees) where one could restore the root actor and some set of sub actors.

This approach still has the issue that storage required for tracking dead actor storage hashes will take up a growing amount of space on-chain. This could be remedied by freezing actors before their funds run out entirely, using the remaining funds to pay for just the actor and its storage root hash for a long period of time until it is finally fully dies.

We can compress by batching. Assuming actors can be frozen once a day, this'll be at most a gigabyte (very conservatively, possibly less than 100MiB) after 1000 years.

Once per eviction period, we'd take all the actors to freeze and put their hashes into a merkle tree (or some datastructure). We'd then append the root of this "freeze set" to a list of frozen actors.

To restore an actor, a client would have to submit a contract containing:

  1. The index in the freeze set where the frozen actor's state is.
  2. The merklepath from the root fo the freeze set to the actor's state.
  3. The actor's state.

The miner would then:

  1. Restore the state.
  2. Remove the state from the freeze set.
  3. Recompute the freeze set's root and replace the one in the state tree.

Updating the freeze set is essential. Otherwise, one could restore an actor, freeze the actor, and then restore it again from the first freeze state (rolling back time).

from specs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.