Skip to content


The isNodeInDistance function is used to find whether a certain node is within a given distance from another node. It returns a boolean value of whether the node is withing the distance or not. The number of nodes to return is specified by the count argument. It's parameters are:

-shardGlobals - this arguemnt is unused -parititionShardDataMap - this arguemnt is unused -hash - the hash of the node -nodeId - the ndoe id of the target node -distance - the distance that you want it to be withing