class RemascValidationRule implements BlockValidationRule {

    @Override
    public boolean isValid(Block block) {
        List<Transaction> txs = block.getTransactionsList();
        boolean result = CollectionUtils.isNotEmpty(txs) && (txs.get(txs.size()-1) instanceof RemascTransaction);
        if(!result) {
            logger.warn("Remasc tx not found in block");
            panicProcessor.panic("invalidremasctx", "Remasc tx not found in block");
        }
        return result;
    }

}