Skip to content

Commit

Permalink
Order tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Dec 4, 2024
1 parent a77d873 commit 6292281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions convex-core/src/main/java/convex/core/cpos/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,10 @@ public static Order create(long proposalPoint, long consensusPoint, SignedData<B
public static Order create() {
return new Order(Vectors.empty().getRef(), EMPTY_CONSENSUS_ARRAY,0);
}

private byte getRecordTag() {
return CVMTag.ORDER;
}

@Override
public int encode(byte[] bs, int pos) {
bs[pos++]=getRecordTag();
bs[pos++]=getTag();
return encodeRaw(bs,pos);
}

Expand Down
2 changes: 1 addition & 1 deletion convex-core/src/main/java/convex/core/data/ARecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected ARecord(byte tag, long n) {


@Override
public final byte getTag() {
public byte getTag() {
return tag;
}

Expand Down

0 comments on commit 6292281

Please sign in to comment.