(self)
return l
Generate locator_hashes value suitable for passing to getheaders message.
Generate locator_hashes value suitable for passing to getheaders message.
Generate locator_hashes value suitable for passing to getheaders message .
def block_locator_hashes(self):
        """
        Generate locator_hashes value suitable for passing to getheaders message.
        """
        if len(self.node_tuples) == 0:
            return [HASH_INITIAL_BLOCK]
        l = []
        for index in self.key_index_generator():
            the_hash = self.tuple_for_index(index)[1]
            if len(l) == 0 or the_hash != l[-1]:
                l.append(the_hash)
        return l
def block_locator_hashes ( self ) : if len ( self . node_tuples ) == 0 : return [ HASH_INITIAL_BLOCK ] l = [ ] for index in self . key_index_generator ( ) : the_hash = self . tuple_for_index ( index ) [ 1 ] if len ( l ) == 0 or the_hash != l [ - 1 ] : l . append ( the_hash ) return l