Ejemplo n.º 1
0
def I_own_hash(hkey):
    return thisNode == spacemath.v_filter(spacemath.hash2loc(hkey), [thisNode] + peers)
Ejemplo n.º 2
0
def find_ideal_forward(key):
    ##print key
    return spacemath.v_filter(spacemath.hash2loc(key), peers + [thisNode])