gitlab.com/SkynetLabs/skyd@v1.6.9/skymodules/renter/hostdb/hosttree/README.md (about)

     1  # Host Tree
     2  Coming Soon...
     3  
     4  ## Weight Function
     5  The HostTree Weight Function is a function used to weight a given HostDBEntry in
     6  the tree. Each HostTree is initialized with a weight function. This allows the
     7  entries to be selected at random, weighted by the hosttree's weight function.
     8  
     9  **NOTE:** Developers should be aware of where the weight function is defined and
    10  what it uses to determine the weight of an entry. The weight function may or may
    11  not require a lock from another package in order to calculate the weight safely.