Block listener #fabric-sdk-java


jeff.jo95z@...
 

hi All,
This is my block listener implemented in fabric sdk:

Consumer<BlockEvent> blockListener = blockEvent -> {

//some lines

}

networkObj.addBlockListener(startBlockNumber, blockListener);

 

once added to the network object this listner object (blockListener) will listen to all the transactions,right?

Is there a chance that this listener object stops listening without getting removed from the network?

 

Join {fabric@lists.hyperledger.org to automatically receive all group messages.