def calc_node_attr(node, edge):
    """
    Returns a tuple of (cltv_delta, min_htlc, fee_proportional) values of the node in the channel.
    """
    policy = None
    if node == edge['node1_pub']:
        policy = edge['node1_policy']
    elif node == edge['node2_pub']:
        policy = edge['node2_policy']
    else:
        raise Exception('node ' + node + ' is not a peer to channel ' + edge['channel_id'])
    return policy['time_lock_delta'], policy['min_htlc'], policy['fee_rate_milli_msat']