no need to check useNewLogic() here
@@ -121,21 +121,12 @@ SBEnv::SBEnv(const ConfigShim &shim, bool)
_exchanger(*this, _rpcsrvmap),
_rpcsrvmap()
{
- if (useNewLogic()) {
srandom(time(nullptr) ^ getpid());
// note: feedback loop between these two:
_localMonitorSubscription = MapSubscription::subscribe(_consensusMap, _localRpcMonitorMap);
_consensusSubscription = MapSubscription::subscribe(_localRpcMonitorMap.dispatcher(), _consensusMap);
_globalHistorySubscription = MapSubscription::subscribe(_consensusMap, _globalVisibleHistory);
_rpcHooks.initRPC(getSupervisor());
- return;
- }
- srandom(time(nullptr) ^ getpid());
- // note: feedback loop between these two:
- _localMonitorSubscription = MapSubscription::subscribe(_consensusMap, _localRpcMonitorMap);
- _consensusSubscription = MapSubscription::subscribe(_localRpcMonitorMap.dispatcher(), _consensusMap);
- _globalHistorySubscription = MapSubscription::subscribe(_rpcsrvmap.proxy(), _globalVisibleHistory);
- _rpcHooks.initRPC(getSupervisor());
}
