def calculate_lock_time_and_version(args, txs):
    lock_time = args.lock_time
    if (lock_time is None):
        if txs:
            lock_time = txs[0].lock_time
        else:
            lock_time = DEFAULT_LOCK_TIME
    version = args.transaction_version
    if (version is None):
        if txs:
            version = txs[0].version
        else:
            version = DEFAULT_VERSION
    return (lock_time, version)
def calculate_lock_time_and_version(args, txs):
    lock_time = args.lock_time
    if (lock_time is None):
        if txs:
            lock_time = txs[0].lock_time
        else:
            lock_time = DEFAULT_LOCK_TIME
    version = args.transaction_version
    if (version is None):
        if txs:
            version = txs[0].version
        else:
            version = DEFAULT_VERSION
    return (lock_time, version)