File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
convex-core/src/main/java/convex/core/cpos Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ public Order append(SignedData<Block> block) {
206
206
207
207
/**
208
208
* Updates blocks in this Order. Returns the same Order if the blocks are identical.
209
+ * Constrains consensus points as required to remain valid
209
210
* @param newBlocks New blocks to use
210
211
* @return Updated Order, or the same order if unchanged
211
212
*/
@@ -305,7 +306,7 @@ public ACell get(Keyword key) {
305
306
*/
306
307
public boolean consensusEquals (Order b ) {
307
308
if (b ==null ) return false ; // definitely not equal
308
- for (int i =1 ; i <CPoSConstants .CONSENSUS_LEVELS ; i ++) {
309
+ for (int i =0 ; i <CPoSConstants .CONSENSUS_LEVELS ; i ++) {
309
310
if (this .getConsensusPoint (i )!=b .getConsensusPoint (i )) return false ;
310
311
}
311
312
if (!this .getBlocks ().equals (b .getBlocks ())) return false ;
You can’t perform that action at this time.
0 commit comments