Skip to content

Commit 1dfce57

Browse files
committed
Merge branch 'pro-74-run-node-ci-benchmark-tests' of github.com:radixdlt/babylon-node into pro-74-run-node-ci-benchmark-tests
2 parents 565c542 + 6202cc6 commit 1dfce57

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

core/src/main/java/com/radixdlt/environment/rx/RxEnvironmentModule.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
import com.radixdlt.ledger.LedgerUpdate;
8383
import com.radixdlt.modules.ModuleRunner;
8484
import com.radixdlt.p2p.NodeId;
85-
import com.radixdlt.utils.ThreadFactories;
8685
import io.reactivex.rxjava3.core.BackpressureOverflowStrategy;
8786
import io.reactivex.rxjava3.core.BackpressureStrategy;
8887
import io.reactivex.rxjava3.core.Flowable;
@@ -98,8 +97,7 @@
9897
public final class RxEnvironmentModule extends AbstractModule {
9998
@Override
10099
public void configure() {
101-
ScheduledExecutorService ses =
102-
Executors.newSingleThreadScheduledExecutor(ThreadFactories.daemonThreads("TimeoutSender"));
100+
ScheduledExecutorService ses = Executors.newScheduledThreadPool(4);
103101
bind(Environment.class).to(RxEnvironment.class);
104102
bind(ScheduledExecutorService.class).toInstance(ses);
105103

core/src/main/java/com/radixdlt/rev2/REv2StateComputer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public void addToMempool(MempoolAdd mempoolAdd, NodeId origin) {
154154
.forEach(
155155
transaction -> {
156156
try {
157+
log.info("Attempt to add transaction to mempool: origin = " + origin);
157158
mempool.addTransaction(transaction);
158159
// Please note that a `MempoolAddSuccess` event is only dispatched when the above
159160
// call does not throw. This is deliberate: we do not want to propagate the
@@ -162,11 +163,13 @@ public void addToMempool(MempoolAdd mempoolAdd, NodeId origin) {
162163
var success =
163164
new MempoolAddSuccess(
164165
RawNotarizedTransaction.create(transaction.getPayload()), origin);
166+
log.info("Add transaction success");
165167
mempoolAddSuccessEventDispatcher.dispatch(success);
166168
} catch (MempoolDuplicateException ignored) {
169+
log.info("Duplicate transaction");
167170
// Ignore these specific subclass of the `MempoolRejectedException` logged below
168171
} catch (MempoolRejectedException e) {
169-
log.debug(e);
172+
log.info("Transaction rejected: " + e.getMessage());
170173
}
171174
});
172175
}

0 commit comments

Comments
 (0)