Skip to content

Commit c671a0d

Browse files
authored
Merge pull request w3f#52 from davxy/fix-write-hostcall
Fix 'accumulate' vectors
2 parents cfaccbe + a14a2dc commit c671a0d

File tree

105 files changed

+2474
-2114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+2474
-2114
lines changed

accumulate/accumulate.asn

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,29 @@ IMPORTS
77
Entropy, ReadyQueue, AccumulatedQueue, Privileges, AccumulateRoot, ServicesStatistics
88
FROM JamTypes;
99

10+
StorageMapEntry ::= SEQUENCE {
11+
-- Storage key (unhashed, as managed by the service code)
12+
key ByteSequence,
13+
-- Storage value
14+
value ByteSequence
15+
}
1016

1117
PreimagesMapEntry ::= SEQUENCE {
18+
-- Preimage blob full hash
1219
hash OpaqueHash,
20+
-- Preimage blob
1321
blob ByteSequence
1422
}
1523

1624
-- Service account information relevant for this STF.
1725
Account ::= SEQUENCE {
1826
-- [a_c, a_b, a_g, a_m, a_o, a_i] Service metadata.
1927
service ServiceInfo,
20-
--[a_p] Preimages blobs.
28+
-- [a_s] Service storage.
29+
storage SEQUENCE OF StorageMapEntry,
30+
-- [a_p] Preimages blobs.
31+
-- This is mostly provided to lookup code blob for accumulate procedure execution.
32+
-- It is not supposed to be altered by this STF (i.e. posterior matches prior).
2133
preimages SEQUENCE OF PreimagesMapEntry
2234
}
2335

588 Bytes
Binary file not shown.

accumulate/full/accumulate_ready_queued_reports-1.json

Lines changed: 46 additions & 39 deletions
Large diffs are not rendered by default.
502 Bytes
Binary file not shown.

accumulate/full/enqueue_and_unlock_chain-1.json

Lines changed: 24 additions & 22 deletions
Large diffs are not rendered by default.
548 Bytes
Binary file not shown.

accumulate/full/enqueue_and_unlock_chain-2.json

Lines changed: 36 additions & 34 deletions
Large diffs are not rendered by default.
591 Bytes
Binary file not shown.

accumulate/full/enqueue_and_unlock_chain-3.json

Lines changed: 49 additions & 42 deletions
Large diffs are not rendered by default.
564 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)