Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Use expression lambda in BlockParser.parseBlock()
Browse files Browse the repository at this point in the history
  • Loading branch information
chirhonul committed Aug 20, 2018
1 parent 19fd2b1 commit e8b259e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/bisq/core/dao/node/parser/BlockParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@ public Block parseBlock(RawBlock rawBlock) throws BlockNotConnectingException {
long startTs = System.currentTimeMillis();
List<Tx> txList = block.getTxs();

rawBlock.getRawTxs().forEach(rawTx -> {
rawBlock.getRawTxs().forEach(rawTx ->
txParser.findTx(rawTx,
genesisTxId,
genesisBlockHeight,
genesisTotalSupply)
.ifPresent(txList::add);
});
.ifPresent(txList::add));
log.debug("parseBsqTxs took {} ms", rawBlock.getRawTxs().size(), System.currentTimeMillis() - startTs);

bsqStateService.onParseBlockComplete(block);
Expand Down

0 comments on commit e8b259e

Please sign in to comment.