transaction_processors/projectHol.py
def main():
    '''Entry-point function for all the TPs.'''
    try:
        logging.basicConfig()
        logging.getLogger().setLevel(logging.DEBUG)

        # Register the Transaction Handler and start it.
        processor = TransactionProcessor(DEFAULT_URL)
        processor.add_handler(ManufacturerTransactionHandler(prefix_hash("manufacturing")))
        processor.add_handler(TransferTransactionHandler(prefix_hash("transfer")))
        processor.add_handler(SalesTransactionHandler(prefix_hash("sales")))
        processor.start()
    
    except KeyboardInterrupt:
        pass
    except SystemExit as err:
        raise err
    except BaseException as err:
        traceback.print_exc(file=sys.stderr)
        sys.exit(1)
Entry-point function for all the TPs.
Entry-point function for all the TPs.
Entry - point function for all the TPs .
def main():
    try:
        logging.basicConfig()
        logging.getLogger().setLevel(logging.DEBUG)
        processor = TransactionProcessor(DEFAULT_URL)
        processor.add_handler(ManufacturerTransactionHandler(prefix_hash("manufacturing")))
        processor.add_handler(TransferTransactionHandler(prefix_hash("transfer")))
        processor.add_handler(SalesTransactionHandler(prefix_hash("sales")))
        processor.start()
    except KeyboardInterrupt:
        pass
    except SystemExit as err:
        raise err
    except BaseException as err:
        traceback.print_exc(file=sys.stderr)
        sys.exit(1)
def main ( ) : try : logging . basicConfig ( ) logging . getLogger ( ) . setLevel ( logging . DEBUG ) processor = TransactionProcessor ( DEFAULT_URL ) processor . add_handler ( ManufacturerTransactionHandler ( prefix_hash ( "manufacturing" ) ) ) processor . add_handler ( TransferTransactionHandler ( prefix_hash ( "transfer" ) ) ) processor . add_handler ( SalesTransactionHandler ( prefix_hash ( "sales" ) ) ) processor . start ( ) except KeyboardInterrupt : pass except SystemExit as err : raise err except BaseException as err : traceback . print_exc ( file = sys . stderr ) sys . exit ( 1 )
Entry-point function for all the TPs.
Entry - point function for all the TPs .
'''Entry-point function for all the TPs.''' # Register the Transaction Handler and start it.
