New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Global Storage Space #686
Comments
What do you think @erikzhang , any better ideas to do it? It's a very important feature in my opinion. |
We don't need global storage space. We can create a contract and only allow CN to write data.
|
Very good Erik, we can do this. |
They can just send a normal |
Ok then, this is easier. I'll prototype the idea. |
Is there any data for CN to store? If no, I don't think we should do it immediately. |
This will go together with a proposal to make system fee gas fractional. This is important to do soon enough, even on Neo 2.X. I will explain the idea on another issue, when actually proposing the feature. |
The beneficiaries of the system fee are the neo holders and are part of the neo protocol and cannot be simply determined by the consensus nodes. |
Ok Erik, I drafted the proposal here: #692 |
* Update cli.md * Update cli.md
it's important for the network to have a Global Storage space, where CN can write important information that can be publicly read, or even, for them to reuse in the future.
One example: store GAS prices of opcodes, that may be variable in the future.
Another example: store exceeding non-fractional GAS, to allow us to easily implement fractional System Fees (#319).
One possibility is to use contract
0x0000...000000
as the storage (the fastest way to do it). Another possibilty is to convert consensus shared script (multisig) into a deployed one, so we can read and write there... one difference is that, after voting, the contract would change. Another problem is that if it's a real script contract, it should behave as one, with specific commands to read and write storage, which is complex to do now, but very possible if we implement this: #685These updates could be part of MinerTx or another InvocationTx included after MinerTx, including Witness of the CN group, with the necessary updates on global storage.
The text was updated successfully, but these errors were encountered: