Skip to content

Commit

Permalink
Revert "Add logs"
Browse files Browse the repository at this point in the history
This reverts commit 4d44db0.
  • Loading branch information
iamyulong committed Dec 6, 2024
1 parent affe316 commit 97e05f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/main/java/com/radixdlt/rev2/REv2StateComputer.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ public void addToMempool(MempoolAdd mempoolAdd, NodeId origin) {
.forEach(
transaction -> {
try {
log.info("Attempt to add transaction to mempool: origin = " + origin);
mempool.addTransaction(transaction);
// Please note that a `MempoolAddSuccess` event is only dispatched when the above
// call does not throw. This is deliberate: we do not want to propagate the
Expand All @@ -163,13 +162,11 @@ public void addToMempool(MempoolAdd mempoolAdd, NodeId origin) {
var success =
new MempoolAddSuccess(
RawNotarizedTransaction.create(transaction.getPayload()), origin);
log.info("Add transaction success");
mempoolAddSuccessEventDispatcher.dispatch(success);
} catch (MempoolDuplicateException ignored) {
log.info("Duplicate transaction");
// Ignore these specific subclass of the `MempoolRejectedException` logged below
} catch (MempoolRejectedException e) {
log.info("Transaction rejected: " + e.getMessage());
log.debug(e);
}
});
}
Expand Down

0 comments on commit 97e05f0

Please sign in to comment.