class BidOrderServiceImpl implements OrderService<BidOrder, ColoredCoinsBidOrderPlacement> {

    @Override
    public void removeOrder(long orderId) {
        int height = blockchain.getHeight();
        BidOrder order = getOrder(orderId);
        // IMPORTANT! update new height in order for correct saving duplicated record and correct trim
        order.setHeight(height); // do not remove
        boolean result = bidOrderTable.deleteAtHeight(order, height);
        log.trace("<< removeOrder() result={}, bidOrderId={}, height={}", result, orderId, height);
    }

    public  BidOrderServiceImpl(
        final DatabaseManager databaseManager,
        final BidOrderTable bidOrderTable,
        final Blockchain blockchain,
        final IteratorToStreamConverter<BidOrder> converter
    );
    @Inject public  BidOrderServiceImpl(
        final DatabaseManager databaseManager,
        final BidOrderTable bidOrderTable,
        final Blockchain blockchain
    );

}