File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
main/java/convex/core/cvm
test/java/convex/core/cvm Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -751,5 +751,9 @@ public long getHistoryPosition() {
751
751
return historyPosition ;
752
752
}
753
753
754
+ public AVector <BlockResult > getBlockResults () {
755
+ return blockResults ;
756
+ }
757
+
754
758
755
759
}
Original file line number Diff line number Diff line change 18
18
import convex .core .cvm .transactions .Invoke ;
19
19
import convex .core .data .ACell ;
20
20
import convex .core .data .AMap ;
21
+ import convex .core .data .AVector ;
21
22
import convex .core .data .AccountKey ;
22
23
import convex .core .data .Keyword ;
23
24
import convex .core .data .ObjectsTest ;
27
28
import convex .core .util .FileUtils ;
28
29
import convex .core .util .Utils ;
29
30
import convex .core .cpos .Block ;
31
+ import convex .core .cpos .BlockResult ;
30
32
import convex .core .cpos .CPoSConstants ;
31
33
32
34
@ TestInstance (Lifecycle .PER_CLASS )
@@ -129,7 +131,11 @@ private void doPeerTest(Peer pt) {
129
131
130
132
long sp =pt .getStatePosition ();
131
133
long hp =pt .getHistoryPosition ();
134
+
132
135
assertTrue (sp >=hp );
136
+
137
+ AVector <BlockResult > results =pt .getBlockResults ();
138
+ assertEquals (sp -hp ,results .count ());
133
139
}
134
140
135
141
@ Test
Original file line number Diff line number Diff line change 30
30
import convex .core .data .AccountKey ;
31
31
import convex .core .data .Hash ;
32
32
import convex .core .data .Keyword ;
33
- import convex .core .data .Maps ;
34
33
import convex .core .data .SignedData ;
35
34
import convex .core .data .Vectors ;
36
35
import convex .core .exceptions .BadFormatException ;
Original file line number Diff line number Diff line change 30
30
import convex .core .cvm .transactions .Invoke ;
31
31
import convex .core .data .ACell ;
32
32
import convex .core .data .AMap ;
33
- import convex .core .data .AVector ;
34
33
import convex .core .data .Hash ;
35
34
import convex .core .data .Keyword ;
36
35
import convex .core .data .Maps ;
You can’t perform that action at this time.
0 commit comments