Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
version 0.2.3: fix event multiple times for same transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
vuapo-eth committed Dec 23, 2018
1 parent c73e1a7 commit 5175636
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'org.iota'
version '0.2.2'
version '0.2.3'

sourceCompatibility = 1.7

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/iota/ict/network/Receiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ private void processIncoming(DatagramPacket packet) {
if (log == null) {
log = tangle.createTransactionLogIfAbsent(transaction);
sender.stats.receivedNew++;
log.senders.add(sender);
ict.notifyListeners(new GossipReceiveEvent(transaction));
}
log.senders.add(sender);
processRequest(transaction, sender);
ict.notifyListeners(new GossipReceiveEvent(transaction));
}

private void processRequest(Transaction transaction, Neighbor requester) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/iota/ict/utils/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.2";
public static final String ICT_VERSION = "0.2.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;
Expand Down

0 comments on commit 5175636

Please sign in to comment.