Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
Remove ping pong from reply stage (#1745)
Browse files Browse the repository at this point in the history
* Remove ping pong

* Remove ping pong code from reply stage

Co-authored-by: Gal Rogozinski <galrogogit@gmail.com>
  • Loading branch information
DyrellC and GalRogozinski authored Feb 6, 2020
1 parent 18263a7 commit eb4e1a4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/com/iota/iri/network/pipeline/ReplyStage.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,6 @@ public ProcessingContext process(ProcessingContext ctx) {
return ctx;
}

// we didn't have the requested transaction (random or explicit) from the neighbor but we will immediately reply
// with the latest known milestone and a needed transaction hash, to keep up the ping-pong
try {
final TransactionViewModel msTVM = TransactionViewModel.fromHash(tangle,
latestMilestoneTracker.getLatestMilestoneHash());
neighborRouter.gossipTransactionTo(neighbor, msTVM, false);
} catch (Exception e) {
e.printStackTrace();
}

ctx.setNextStage(TransactionProcessingPipeline.Stage.FINISH);
return ctx;
}
Expand Down

0 comments on commit eb4e1a4

Please sign in to comment.