Skip to content

Commit

Permalink
FAB-5344 Provide common handling for Seek
Browse files Browse the repository at this point in the history
PS 5: fix Envelop->Envelope in test code

Change-Id: Iaa0d35c72c204a1c67452bc3fe4e7d7e0507d2cc
Signed-off-by: rickr <cr22rc@gmail.com>
  • Loading branch information
cr22rc committed Jul 18, 2017
1 parent 45080c2 commit 8d12ffb
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 203 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/hyperledger/fabric/sdk/BlockEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ EventHub getEventHub() {

List<TransactionEvent> getTransactionEventsList() {

ArrayList<TransactionEvent> ret = new ArrayList<TransactionEvent>(getEnvelopCount());
ArrayList<TransactionEvent> ret = new ArrayList<TransactionEvent>(getEnvelopeCount());
for (TransactionEvent transactionEvent : getTransactionEvents()) {
ret.add(transactionEvent);
}
Expand All @@ -97,7 +97,7 @@ class TransactionEventIterator implements Iterator<TransactionEvent> {
final int max;

TransactionEventIterator() {
max = getEnvelopCount();
max = getEnvelopeCount();

}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/hyperledger/fabric/sdk/BlockInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public long getBlockNumber() {
}

/**
* getEnvelopCount
* getEnvelopeCount
*
* @return the number of transactions in this block.
*/

public int getEnvelopCount() {
public int getEnvelopeCount() {
return block.getData().getDataCount();
}

Expand Down
Loading

0 comments on commit 8d12ffb

Please sign in to comment.