-
Notifications
You must be signed in to change notification settings - Fork 45
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
Apparent Mutability of DB API contents #242
Comments
Assume internal data structure have done a state transition, we should allow retrieval of value from previous blocks. This would improve audibility when dapp rely on storage API to expose auditable data, config and events.
Does this also makes sense for contract data record?
|
What you propose here is a variant on my 2nd solution -- allow retrieval of historical state. I was thinking of just returning the full historical state when a key is queried like:
Reasoning: in blockchain-land it is pretty common to return a bit too much, then truncate. Perhaps it's better to implement in this order: FIRST
SECOND
THIRD
NoteThe current problem is very specifically not one of mutability. All VSYS chain state is immutable. It is a problem of apparent mutability |
Block height makes sense, ideally response header should include HTTP ETag with TX Hash as value.
|
I've heard that we're deprecating the DB API-- @ncying could you please confirm this? If we are deprecating that, it's safe to close this issue. |
Please note that this issue is titled apparent mutability. Database API contents are not actually mutable.
But to an outside observer, or any application calling that API, they will appear to be mutable, and state changes are not currently retrievable.
A private key or account holder can overwrite the contents of values for any key in the database API with any arbitrary content, and it is not possible to retrieve changes in state over time.
So, while historical state is stored in the blockchain, only the latest state can be retrieved.
This poses issues for:
Solutions:
OR
The text was updated successfully, but these errors were encountered: