update get tx handler
@@ -46,7 +46,6 @@ public class GetTxMessageHandler extends AbstractMessageHandler<GetTxMessage> {
private TemporaryCacheManager cacheManager = TemporaryCacheManager.getInstance();
private MessageBusService messageBusService = NulsContext.getServiceBean(MessageBusService.class);
- private LedgerService ledgerService = NulsContext.getServiceBean(LedgerService.class);
@Override
public void onMessage(GetTxMessage message, Node fromNode) {
@@ -54,9 +53,6 @@ public class GetTxMessageHandler extends AbstractMessageHandler<GetTxMessage> {
return;
}
Transaction tx = cacheManager.getTx(message.getMsgBody());
- if (null == tx) {
- tx = ledgerService.getTx(message.getMsgBody());
- }
if (null == tx) {
sendNotFound(message.getMsgBody(), fromNode);
return;
