Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 224f569

Browse files
committed
FAB-6989 update dependencies
Change-Id: Iabef7dcf55f37ac48385f468e83c38970ff0cdf8 Signed-off-by: rickr <cr22rc@gmail.com>
1 parent 9224fa3 commit 224f569

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
<tag>fabric-sdk-java-1.0</tag>
2929
</scm>
3030
<properties>
31-
<grpc.version>1.8.0</grpc.version><!-- CURRENT_GRPC_VERSION -->
31+
<grpc.version>1.9.0</grpc.version><!-- CURRENT_GRPC_VERSION -->
3232
<bouncycastle.version>1.59</bouncycastle.version>
33-
<httpclient.version>4.5.4</httpclient.version>
33+
<httpclient.version>4.5.5</httpclient.version>
3434
<skipITs>true</skipITs>
3535
<alpn-boot-version>8.1.7.v20160121</alpn-boot-version>
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -96,7 +96,7 @@
9696
<dependency>
9797
<groupId>io.netty</groupId>
9898
<artifactId>netty-codec-http2</artifactId>
99-
<version>4.1.19.Final</version>
99+
<version>4.1.20.Final</version>
100100
</dependency>
101101
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
102102
<dependency>

src/main/java/org/hyperledger/fabric/sdk/BlockInfo.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public long getBlockNumber() {
146146
*/
147147

148148
public int getEnvelopeCount() {
149-
return isFiltered() ? filteredBlock.getFilteredTxCount() : block.getData().getDataCount();
149+
return isFiltered() ? filteredBlock.getFilteredTransactionsCount() : block.getData().getDataCount();
150150
}
151151

152152
public class EnvelopeInfo {
@@ -267,12 +267,12 @@ public EnvelopeInfo getEnvelopeInfo(int envelopeIndex) throws InvalidProtocolBuf
267267

268268
if (isFiltered()) {
269269

270-
switch (filteredBlock.getFilteredTx(envelopeIndex).getType().getNumber()) {
270+
switch (filteredBlock.getFilteredTransactions(envelopeIndex).getType().getNumber()) {
271271
case Common.HeaderType.ENDORSER_TRANSACTION_VALUE:
272-
ret = new TransactionEnvelopeInfo(this.filteredBlock.getFilteredTx(envelopeIndex));
272+
ret = new TransactionEnvelopeInfo(this.filteredBlock.getFilteredTransactions(envelopeIndex));
273273
break;
274274
default: //just assume base properties.
275-
ret = new EnvelopeInfo(this.filteredBlock.getFilteredTx(envelopeIndex));
275+
ret = new EnvelopeInfo(this.filteredBlock.getFilteredTransactions(envelopeIndex));
276276
break;
277277
}
278278

@@ -497,7 +497,7 @@ public TxReadWriteSetInfo getTxReadWriteSet() {
497497
public ChaincodeEvent getEvent() {
498498
if (isFiltered()) {
499499
final PeerEvents.FilteredChaincodeAction chaincodeActions = filteredAction;
500-
return new ChaincodeEvent(chaincodeActions.getCcEvent().toByteString());
500+
return new ChaincodeEvent(chaincodeActions.getChaincodeEvent().toByteString());
501501
}
502502

503503
return transactionAction.getPayload().getAction().getProposalResponsePayload()
@@ -554,7 +554,7 @@ class EnvelopeInfoIterator implements Iterator<EnvelopeInfo> {
554554
final int max;
555555

556556
EnvelopeInfoIterator() {
557-
max = isFiltered() ? filteredBlock.getFilteredTxCount() : block.getData().getDataCount();
557+
max = isFiltered() ? filteredBlock.getFilteredTransactionsCount() : block.getData().getDataCount();
558558

559559
}
560560

src/main/proto/peer/events.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ message Unregister {
8080
message FilteredBlock {
8181
string channel_id = 1;
8282
uint64 number = 2; // The position in the blockchain
83-
repeated FilteredTransaction filtered_tx = 4;
83+
repeated FilteredTransaction filtered_transactions = 4;
8484
}
8585

8686
//FilteredTransaction is a minimal set of information about a transaction
@@ -103,7 +103,7 @@ message FilteredTransactionActions {
103103
//FilteredChaincodeAction is a minimal set of information about an action within a
104104
//transaction.
105105
message FilteredChaincodeAction {
106-
ChaincodeEvent ccEvent = 1;
106+
ChaincodeEvent chaincode_event = 1;
107107
}
108108

109109
// SignedEvent is used for any communication between consumer and producer

0 commit comments

Comments
 (0)