this.processBlock(block);
// Remove all wallet transactions as they already approved by the net
worldManager.getWallet().removeTransactions(block.getTransactionsList());
EthereumListener listener = worldManager.getListener();
listener.trace(String.format("Block chain size: [ %d ]", this.getSize()));
EthereumListener ethereumListener = worldManager.getListener();
ethereumListener.onBlock(block);
if (blockQueue.size() == 0 &&
!syncDoneCalled &&
channelManager.isAllSync()){
logger.info("Sync done");
syncDoneCalled = true;
ethereumListener.onSyncDone();
}
}