Пример #1
0
def I_own_hash(hkey):
    return thisNode == spacemath.v_filter(spacemath.hash2loc(hkey), [thisNode] + peers)
Пример #2
0
def find_ideal_forward(key):
    ##print key
    return spacemath.v_filter(spacemath.hash2loc(key), peers + [thisNode])