A Simple Guide to How Changes Actually Happen.
What's a Pre-Image?
Think of a pre-image like a detailed blueprint for changes we want to make to Vitreus. When someone wants to change something in the network, they need to write down exactly what they want to change and how it should work. We refer to this comprehensive plan as a pre-image.
Why Do We Need Pre-images?
Imagine you're building something with LEGO. You wouldn't want someone to just say, "Let's build something cool"—you'd want to see the instruction manual first, right? That's what a pre-image does. It shows everyone exactly what will happen if a proposal passes.
How It Actually Works
When someone makes a proposal, they first create the complete plan (the pre-image). However, instead of immediately storing all that information on the blockchain, which would be costly and take up a lot of space, they submit a special code, known as a hash, that represents their plan. It functions similarly to a stored package receipt.
The Two-Step Process
- Firstly, they present the entire plan for everyone to view and comprehend. This approach is akin to publishing the LEGO instructions online.
- Then, they submit the proposal along with a special code that confirms the plan they intend to follow. Presenting a receipt serves as proof of using the instruction manual.
Why This Matters for You
Understanding pre-images is crucial, even if you're not the one making proposals.
When you vote on a proposal, you can look at its pre-image to know exactly what you're voting for. No surprises!
Once you cast your vote, the code remains unchangeable, ensuring the fulfillment of your wishes.
You can check that proposals are clear and well-planned before supporting them.
What Happens When a Proposal Passes
This is where things get interesting. When a proposal receives enough votes to pass,
The network looks at the pre-image (our blueprint) and follows those instructions exactly.
If the proposal included a change, the network implements those specific changes.
Everything operates automatically, adhering to a plan that everyone can view and vote on.
Why Clear Proposals Matter
Good proposals and pre-images need to be clear for a simple reason: everyone should understand what they're voting for. It's like having clear directions for a road trip—you want to know where you're going before you start driving!
Reading Proposals: What to Look For
When you see a new proposal, you should be able to understand:
What exactly will change? Why is the change needed? How will it affect the network? When will it happen?
If any of these points are unclear, feel free to ask questions in the community channels!
A Real-World Example
Suppose an individual wishes to modify the frequency of network rewards distribution. Their pre-image would need to show the exact new timing for rewards, how the change will happen, when it will start, as well as any other settings that need to change.
This way, everyone knows exactly what they're voting for.
The Importance of Code Execution
Once a proposal passes, the network automatically makes the changes described in the pre-image. This is vital because
Everything happens exactly as planned. No one can change the plan at the last minute. The changes are automatic and trustworthy.
Keeping Things Safe
The pre-image system helps keep our network safe by:
- Making sure everyone can clearly see the proposed changes.
- Preventing last-minute changes to proposals
- Ensuring that only approved changes can happen
- Keeping a clear record of all changes
What Makes a Good Pre-image?
A good pre-image is like a good recipe—it should be clear enough that anyone can understand what's going to happen. It should include:
A clear explanation of the changes. Exact details of how things will work. Any important timing or technical details Expected results of the changes
Getting Help Understanding Proposals
If you come across a proposal and its pre-image but are uncertain about its meaning,
Ask questions in the community chat. Look for discussions about the proposal. Check if there are simpler explanations available. Remember: there are no silly questions when it comes to understanding proposals!
The Big Picture
Pre-images and proposal systems might sound complicated, but they're really just a way to make sure everyone knows exactly what they're voting for and that changes happen exactly as planned. Think of it as the network's way of keeping promises—what you see is what you get!
Remember: You don't need to understand all the technical details to participate in governance. You just need to understand what a proposal will do and why it matters. The pre-image system is there to help make this clear for everyone.