channel.sendTransaction(successful, channel.getOrderers()).thenApply(transactionEvent -> { if (transactionEvent.isValid()) { logger.info("Finished transaction with transaction id " + transactionEvent.getTransactionID()); } else { logger.info("Failed to sending instatiate transaction to orderer!");
logger.info("sending transaction proposal to orderer"); channel.sendTransaction(successful).thenApply(transactionEvent -> { if (transactionEvent.isValid()) { logger.info("Successfully send transaction proposal to orderer. Transaction ID: " + transactionEvent.getTransactionID()); } else { logger.info("Failed to send transaction proposal to orderer"); return transactionEvent.getTransactionID(); }).get(clientConfig.getTransactionWaitTime(), TimeUnit.SECONDS);
.thenApply( transactionEvent -> { logger.info("transaction event is valid", transactionEvent.isValid()); logger.info(String.format("Finished instantiate transaction with transaction id %s", transactionEvent.getTransactionID())); return null; }).exceptionally(e -> { BlockEvent.TransactionEvent te = ((TransactionEventException) e).getTransactionEvent(); if (te != null) { logger.info(String.format("Transaction with txid %s failed. %s", te.getTransactionID(), e));
.thenApply( transactionEvent -> { logger.info("transaction event is valid", transactionEvent.isValid()); logger.info(String.format("Finished instantiate transaction with transaction id %s", transactionEvent.getTransactionID())); return null; }).exceptionally(e -> { BlockEvent.TransactionEvent te = ((TransactionEventException) e).getTransactionEvent(); if (te != null) { logger.info(String.format("Transaction with txid %s failed. %s", te.getTransactionID(), e));
.thenApply( transactionEvent -> { logger.info("transaction event is valid", transactionEvent.isValid()); logger.info(String.format("Finished instantiate transaction with transaction id %s", transactionEvent.getTransactionID())); return null; }).exceptionally(e -> { BlockEvent.TransactionEvent te = ((TransactionEventException) e).getTransactionEvent(); if (te != null) { logger.info(String.format("Transaction with txid %s failed. %s", te.getTransactionID(), e));
.thenApply( transactionEvent -> { logger.info("transaction event is valid", transactionEvent.isValid()); logger.info(String.format("Finished instantiate transaction with transaction id %s", transactionEvent.getTransactionID())); return null; }).exceptionally(e -> { BlockEvent.TransactionEvent te = ((TransactionEventException) e).getTransactionEvent(); if (te != null) { logger.info(String.format("Transaction with txid %s failed. %s", te.getTransactionID(), e));
TransactionEvent getTransactionEvent(int index) throws InvalidProtocolBufferException { TransactionEvent ret = null; EnvelopeInfo envelopeInfo = getEnvelopeInfo(index); if (envelopeInfo.getType() == EnvelopeType.TRANSACTION_ENVELOPE) { if (isFiltered()) { ret = new TransactionEvent(getEnvelopeInfo(index).filteredTx); } else { ret = new TransactionEvent((TransactionEnvelopeInfo) getEnvelopeInfo(index)); } } return ret; }
TransactionEvent getTransactionEvent(int index) throws InvalidProtocolBufferException { TransactionEvent ret = null; EnvelopeInfo envelopeInfo = getEnvelopeInfo(index); if (envelopeInfo.getType() == EnvelopeType.TRANSACTION_ENVELOPE) { if (isFiltered()) { ret = new TransactionEvent(getEnvelopeInfo(index).filteredTx); } else { ret = new TransactionEvent((TransactionEnvelopeInfo) getEnvelopeInfo(index)); } } return ret; }
TransactionEvent getTransactionEvent(int index) throws InvalidProtocolBufferException { TransactionEvent ret = null; EnvelopeInfo envelopeInfo = getEnvelopeInfo(index); if (envelopeInfo.getType() == EnvelopeType.TRANSACTION_ENVELOPE) { if (isFiltered()) { ret = new TransactionEvent(getEnvelopeInfo(index).filteredTx); } else { ret = new TransactionEvent((TransactionEnvelopeInfo) getEnvelopeInfo(index)); } } return ret; }