Replies: 3 comments 4 replies
-
So the unification datastore bytecode is decided and we will do it ? (in near future ? this month ?) Very short term for having a persistent ledger by the end of the month:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Decisions:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this discussion is linked to this one: #2970 and there are some (maybe useful) comments... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
This document lists the upcoping breaking changes on the ledger, how to version it, and things that might hamper keeping the ledger from one testnet to the next.
Ledger entry versioning
All entries in the ledger should have a
version
field so that they can be versionned. That way, switching to native DNS in the future will be simpler.Datastore/Bytecode unification
There is a lot of code duplication between datastore management and bytecode management in the ledger.
The idea is to remove the
bytecode
field in accounts and have only the datastore. For each datastore value, have:flags
byte with two bits for now:immutable
: if 1, this entry cannot be changed/deletedexecutable
: if 1, contains bytecode that can be executed within the context of the account by external callersBytecode versioning
Bytecode always starts with a version number indicating which virtual machine to use for execution
UPDATE: Decisions made
Beta Was this translation helpful? Give feedback.
All reactions