From 615eadd111a41625355353f1e84943a67e5b4628 Mon Sep 17 00:00:00 2001 From: Lukas Tassanyi Date: Mon, 31 Dec 2018 10:54:54 +0100 Subject: [PATCH] change version to 0.3 --- build.gradle | 2 +- docs/CLASSES.md | 5 +++++ src/main/java/org/iota/ict/utils/Constants.java | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 2696788..c1ecc77 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group 'org.iota' -version '0.3-SNAPSHOT' +version '0.3' sourceCompatibility = 1.7 diff --git a/docs/CLASSES.md b/docs/CLASSES.md index 7f7000a..f2a7ada 100644 --- a/docs/CLASSES.md +++ b/docs/CLASSES.md @@ -102,6 +102,11 @@ tryte sequence consists of multiple tryte fields (e.g. address, value< of static length. With this class, these fields can be easily accessed. Transaction objects are data objects, and their fields are not supposed to change after instantiation. To create custom transaction, one should use TransactionBuilder.build(). +### [RingTangle](../src/main/java/org/iota/ict/model/RingTangle.java) +This Tangle prunes transactions after reaching a certain size. It works similar to a ring memory (hence the name). +The transactions are pruned in order of their timestamp, always keeping the N (transactionCapacity) most recent ones. +As an exception, the NULL transaction will never be pruned away. + ### [BalanceChange](../src/main/java/org/iota/ict/model/BalanceChange.java) A BalanceChange models a proposed change for the IOTA token balance of an IOTA address. Since tokens can neither be burned nor created, no positive or negative BalanceChange cannot exist on its own but requires other balance diff --git a/src/main/java/org/iota/ict/utils/Constants.java b/src/main/java/org/iota/ict/utils/Constants.java index 745e303..be3293d 100644 --- a/src/main/java/org/iota/ict/utils/Constants.java +++ b/src/main/java/org/iota/ict/utils/Constants.java @@ -7,7 +7,7 @@ * multiple classes are kept together here to make them easier to find and adjust. */ public class Constants { - public static final String ICT_VERSION = "0.3-SNAPSHOT"; + public static final String ICT_VERSION = "0.3"; public static final int MAX_NEIGHBOR_COUNT = 3; public static final int TRANSACTION_SIZE_TRITS = Transaction.Field.REQUEST_HASH.tritOffset + Transaction.Field.REQUEST_HASH.tritLength; public static final int TRANSACTION_SIZE_TRYTES = TRANSACTION_SIZE_TRITS / 3;