// We need to order Merkle tree 1st before acually
// Actual Merkel Tree implementation in Java. We probably will go with a less dramatic version for POC.
@Override
    public boolean addPendingAuthorisationtoBlock() {
        logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
        block = new Block();
        try{
            ArrayList<BlockChainAuthorisedObj>  pendingAuthorisationArrayList;
            synchronized (pendingAuthorisationContainer){
                pendingAuthorisationArrayList = pendingAuthorisationContainer.getPendingAccessTokens();
                logger.info("pendingAuthorisationArrayList Size: "+ pendingAuthorisationArrayList.size());
                pendingAuthorisationContainer.reset();
                logger.info("pendingAuthorisationArrayList Size post reset: "+ pendingAuthorisationArrayList.size());
            }
            // We need to order Merkle tree 1st before acually
            // Actual Merkel Tree implementation in Java. We probably will go with a less dramatic version for POC.
        }catch (Exception ex){
            logger.error(ex.getStackTrace());
        }
        return false;
    }
logger.info("pendingAuthorisationArrayList Size post reset: "+ pendingAuthorisationArrayList.size());
}
// We need to order Merkle tree 1st before acually
// Actual Merkel Tree implementation in Java. We probably will go with a less dramatic version for POC.
}catch (Exception ex){
logger.error(ex.getStackTrace());
logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
block = new Block();
try{
ArrayList<BlockChainAuthorisedObj> pendingAuthorisationArrayList;
synchronized (pendingAuthorisationContainer){
pendingAuthorisationArrayList = pendingAuthorisationContainer.getPendingAccessTokens();
logger.info("pendingAuthorisationArrayList Size: "+ pendingAuthorisationArrayList.size());
pendingAuthorisationContainer.reset();
logger.info("pendingAuthorisationArrayList Size post reset: "+ pendingAuthorisationArrayList.size());
}
// We need to order Merkle tree 1st before acually
// Actual Merkel Tree implementation in Java. We probably will go with a less dramatic version for POC.
}catch (Exception ex){
logger.error(ex.getStackTrace());
}
return false;
}
@Override
public boolean addPendingAuthorisationtoBlock() {
logger.info("DefaultBlockChainPublisher:: addPendingAuthorisationtoBlock method called with Client ID:");
block = new Block();
try{
ArrayList<BlockChainAuthorisedObj> pendingAuthorisationArrayList;
synchronized (pendingAuthorisationContainer){
pendingAuthorisationArrayList = pendingAuthorisationContainer.getPendingAccessTokens();
logger.info("pendingAuthorisationArrayList Size: "+ pendingAuthorisationArrayList.size());
pendingAuthorisationContainer.reset();
logger.info("pendingAuthorisationArrayList Size post reset: "+ pendingAuthorisationArrayList.size());
}
// We need to order Merkle tree 1st before acually
// Actual Merkel Tree implementation in Java. We probably will go with a less dramatic version for POC.
}catch (Exception ex){
logger.error(ex.getStackTrace());
}
return false;
}