Comments (1)
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:
- The index in the freeze set where the frozen actor's state is.
- The merklepath from the root fo the freeze set to the actor's state.
- The actor's state.
The miner would then:
- Restore the state.
- Remove the state from the freeze set.
- 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)
- Architecture diagram SVG fails to render?
- Spec update for FIP 0024 HOT 1
- Spec update for FIP-0020 HOT 3
- Spec update to 0023
- Fix fault fees
- Update faulty period according to FIP-0026 HOT 4
- Add spec section for batch balancer
- Add spec for snap deal HOT 3
- The penalty mechanism of time and space proof
- i too many init miner... can i remove Owned Miner?? HOT 1
- Removal of Fuhon network implementation HOT 3
- Fix the deployment. HOT 6
- Filecoin Verify method is mentioned as Todo, is the implementation available for it. HOT 2
- Internal links/anchors on spec.filecoin.io don't open
- Where to find Filecoin’s network’s handshake specification?
- sector sealing specifics link to lotus source on github leads nowhere
- Multiple links broken HOT 1
- link broken HOT 1
- spec.filecoin.io DOWN HOT 1
- Let's update the spec! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from specs.