-
Notifications
You must be signed in to change notification settings - Fork 10
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
State trie differences #56
Comments
Service encoding
from our bootstrap preimage here which is 188 bytes:
account_lookupFrom our redo of the
(Earlier we had 32 with 0x20 instead of 0xbc, which was wrong... thank you for your report) So, if you agree, we will correct to:
Note the Please confirm you agree with the above fixes and we will republish today! Thank you! |
I am talking about
l is not blob_len, is the value in l in the |
Formulas 9.6 and 12.33 (GP 0.6.2) should guarantee that |
I found a bug on own side also, I was take the wrong slice of hash. Should be: |
The lookup_meta has 188 here for the 188 byte preimage here The storage size formula has TWO components: ![]() The first component accounts for the So I think its actually 81+188=269, which is what we had before! |
Where do you see The data comes from
|
improved, but still differences in two fields:
My full service value: |
I adjusted balances to a nice number like 10000000000 -- which is 1 DOT (decimals 10) I committed the 269 in this commit -- thank you for the taking the time to haggle this out! |
Addressed in 0.6.2.2 |
I found two differences in our state tries on service related stuff. Files:
chainspecs/state_snapshots/genesis-tiny.json
and
chainspecs/traces/genesis-tiny.json
Service encoding
The service 0 value. Your side:
Our side:
You have
b=18446744073709551615
which is different from json value (4294967295
)also l is not 269 as stated (incorrect value of bytes). Formula 9.8 says value is (81 + z) and z here is 32, so the correct value should be 81 + 32 = 113
account_lookup encoding
check if you are using the correct formula D.2:
∀(s↦ a) ∈ δ,((h,l) ↦ t) ∈ al ∶ C(s,E4(l)⌢ H(h)2...30)↦ E(↕[E4(x) ∣ x<−t])
The text was updated successfully, but these errors were encountered: