ListenableFuture<Protocol.Response> sendDiscoveryRequestAsync(Protocol.SignedRequest discoveryRequest) throws PeerException, InvalidArgumentException { logger.debug(format("peer.sendDiscoveryRequstAsync %s", toString())); EndorserClient localEndorserClient = getEndorserClient(); try { return localEndorserClient.sendDiscoveryRequestAsync(discoveryRequest); } catch (Throwable t) { removeEndorserClient(true); throw t; } }
ListenableFuture<FabricProposalResponse.ProposalResponse> sendProposalAsync(FabricProposal.SignedProposal proposal) throws PeerException, InvalidArgumentException { checkSendProposal(proposal); if (IS_DEBUG_LEVEL) { logger.debug(format("peer.sendProposalAsync %s", toString())); } EndorserClient localEndorserClient = getEndorserClient(); try { return localEndorserClient.sendProposalAsync(proposal); } catch (Throwable t) { removeEndorserClient(true); throw t; } }
ListenableFuture<Protocol.Response> sendDiscoveryRequestAsync(Protocol.SignedRequest discoveryRequest) throws PeerException, InvalidArgumentException { logger.debug(format("peer.sendDiscoveryRequstAsync %s", toString())); EndorserClient localEndorserClient = getEndorserClient(); try { return localEndorserClient.sendDiscoveryRequestAsync(discoveryRequest); } catch (Throwable t) { removeEndorserClient(true); throw t; } }
ListenableFuture<FabricProposalResponse.ProposalResponse> sendProposalAsync(FabricProposal.SignedProposal proposal) throws PeerException, InvalidArgumentException { checkSendProposal(proposal); if (IS_DEBUG_LEVEL) { logger.debug(format("peer.sendProposalAsync %s", toString())); } EndorserClient localEndorserClient = getEndorserClient(); try { return localEndorserClient.sendProposalAsync(proposal); } catch (Throwable t) { removeEndorserClient(true); throw t; } }