from sawtooth_sdk.processor.core import TransactionProcessor
from handler import BlockONSTXHandler

def main():
    # In docker, the url would be the validator's container name with
    # port 4004
    processor = TransactionProcessor(url='tcp://127.0.0.1:4004')

    handler = BlockONSTXHandler("007007")

    processor.add_handler(handler)

    processor.start()

main()