Module ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad orelse Return Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad orelse Return Call AttributeLoad NameLoad attr Call NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad If CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore NameLoad Assign NameStore Dict Str Dict Str Str NameLoad Num Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign NameStore ListComp NameLoad comprehension TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareIn NameLoad NameLoad If NameLoad body Assign NameStore Dict Str Dict Str NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Return NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assert CompareIn NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult BinOpMult Num NameLoad SubscriptLoad NameLoad Index NameLoad Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpOr Call NameLoad NameLoad NameLoad CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assert CompareNotEq NameLoad Num Assert CompareIn NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult BinOpMult Num NameLoad SubscriptLoad NameLoad Index NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body Return Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareIn Str NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Return Num orelse Return Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIn Str NameLoad body Return Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Num Assign NameStore NameLoad Assign NameStore Call NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad If UnaryOpNot BoolOpOr CompareIn NameLoad AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Num Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body Return Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareIn Str NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Return Num orelse Return Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIn Str NameLoad body Return Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args defaults body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Num Return Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body Return Call NameLoad Str Assert CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return NameLoad orelse Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn AttributeLoad NameLoad attr NameLoad body Return Call NameLoad Str Assert CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return NameLoad orelse Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body Return If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Num If Call AttributeLoad NameLoad attr NameLoad body Return Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign NameStore NameLoad Assign NameStore ListLoad For TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Break If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad decorator_list decorator_list
N/A zope.interface implements lbrynet.interfaces IMetadataHandler IRequestCreator lbrynet.core.client.ClientRequest ClientRequest ClientPaidRequest lbrynet.core.Error InsufficientFundsError InvalidResponseError RequestCanceledError lbrynet.core.Error NoResponseError ConnectionClosedBeforeResponseError ValuableBlobInfo ValuableBlobInfo N/A datetime N/A logging N/A random twisted.internet defer twisted.python.failure Failure collections defaultdict N/A log N/A N/A logging getLogger __name__ BlindMetadataHandler N/A object N/A N/A N/A implements IMetadataHandler IRequestCreator __init__ N/A N/A self info_manager peers peer_finder approved_peers payment_rate_manager wallet download_manager N/A N/A N/A N/A self info_manager info_manager N/A N/A self payment_rate_manager payment_rate_manager N/A N/A self wallet wallet N/A N/A self download_manager download_manager N/A N/A self _peers peers N/A N/A self peer_finder peer_finder N/A N/A self approved_peers approved_peers N/A N/A self _valuable_protocol_prices N/A N/A N/A self _info_protocol_prices N/A N/A N/A self _price_disagreements N/A N/A N/A self _incompatible_peers N/A N/A N/A self _last_blob_hashes_from_peers N/A N/A N/A self _valuable_hashes N/A N/A N/A self _blob_infos N/A N/A N/A self _peer_search_results N/A defaultdict list N/A get_initial_blobs N/A N/A self N/A N/A N/A d N/A N/A N/A self info_manager get_all_blob_infos N/A d N/A final_blob_num N/A N/A self N/A N/A N/A None N/A send_next_request N/A N/A self peer protocol N/A N/A N/A sent_request False N/A N/A N/A self _should_send_request_to peer N/A N/A v_r N/A N/A self _get_valuable_blob_request peer N/A N/A v_r None N/A N/A v_p_r N/A N/A self _get_valuable_price_request peer protocol N/A reserved_points N/A N/A self _reserve_points_valuable peer protocol N/A v_r max_pay_units N/A N/A reserved_points None N/A N/A d1 N/A N/A protocol add_request v_r N/A N/A N/A d1 addCallback N/A self _handle_valuable_blob_response peer v_r N/A N/A N/A d1 addBoth N/A self _pay_or_cancel_payment protocol reserved_points N/A self _info_protocol_prices N/A N/A N/A d1 addErrback N/A self _request_failed valuable blob request peer N/A sent_request True N/A N/A v_p_r None N/A N/A d2 N/A N/A protocol add_request v_p_r N/A N/A N/A d2 addCallback N/A self _handle_valuable_price_response peer v_p_r protocol N/A N/A N/A d2 addErrback N/A self _request_failed valuable price request peer N/A N/A N/A N/A defer fail N/A InsufficientFundsError N/A i_r N/A N/A self _get_info_request peer N/A N/A i_r None N/A N/A i_p_r N/A N/A self _get_info_price_request peer protocol N/A reserved_points N/A N/A self _reserve_points_info peer protocol N/A i_r max_pay_units N/A N/A reserved_points None N/A N/A d3 N/A N/A protocol add_request i_r N/A N/A N/A d3 addCallback N/A self _handle_info_response peer i_r protocol reserved_points N/A N/A N/A d3 addBoth N/A self _pay_or_cancel_payment protocol reserved_points N/A self _valuable_protocol_prices N/A N/A N/A d3 addErrback N/A self _request_failed info request peer reserved_points N/A sent_request True N/A N/A i_p_r None N/A N/A d4 N/A N/A protocol add_request i_p_r N/A N/A N/A d4 addCallback N/A self _handle_info_price_response peer i_p_r protocol N/A N/A N/A d4 addErrback N/A self _request_failed info price request peer N/A N/A N/A N/A defer fail N/A InsufficientFundsError N/A N/A N/A defer succeed sent_request N/A get_new_peers N/A N/A self N/A N/A N/A peers None N/A N/A self _peer_search_results N/A N/A peers N/A N/A N/A self _peer_search_results keys N/A N/A N/A N/A len N/A self approved_peers 0 N/A N/A peers N/A N/A random sample N/A self approved_peers N/A len N/A self approved_peers N/A N/A N/A defer succeed peers N/A _should_send_request_to N/A N/A self peer N/A N/A N/A N/A peer N/A self _incompatible_peers N/A N/A False N/A N/A N/A N/A self _peers N/A peer 0 N/A N/A True N/A False N/A _get_valuable_blob_request N/A N/A self peer N/A N/A N/A blob_hash None N/A N/A peer N/A self _last_blob_hashes_from_peers N/A N/A N/A h expire_time N/A N/A self _last_blob_hashes_from_peers N/A peer N/A N/A N/A N/A N/A datetime datetime now expire_time N/A N/A N/A N/A self _last_blob_hashes_from_peers N/A peer N/A N/A blob_hash h N/A r_dict N/A valuable_blob_hashes N/A reference max_blob_hashes blob_hash 20 N/A response_identifier valuable_blob_hashes N/A request N/A ClientPaidRequest r_dict response_identifier 20 N/A request N/A _get_valuable_price_request N/A N/A self peer protocol N/A N/A N/A request None N/A N/A N/A protocol N/A self _valuable_protocol_prices N/A N/A N/A N/A self _valuable_protocol_prices N/A protocol N/A N/A N/A self payment_rate_manager get_rate_valuable_blob_hash peer N/A request_dict N/A valuable_blob_payment_rate N/A N/A self _valuable_protocol_prices N/A protocol N/A request N/A ClientRequest request_dict valuable_blob_payment_rate N/A request N/A _get_info_request N/A N/A self peer N/A N/A N/A N/A peer N/A self _peer_search_results N/A N/A blob_hashes N/A N/A self _peer_search_results N/A peer N/A N/A N/A self _peer_search_results N/A peer N/A references N/A N/A blob_hash blob_hashes N/A N/A N/A blob_hash N/A self _valuable_hashes N/A N/A N/A N/A references append N/A N/A N/A self _valuable_hashes N/A blob_hash N/A 1 N/A hashes_to_search N/A h N/A N/A h N/A s r p N/A N/A N/A self _valuable_hashes iteritems N/A r references N/A hashes_to_search N/A N/A r_dict N/A blob_length N/A blob_hashes hashes_to_search N/A response_identifier blob_length N/A request N/A ClientPaidRequest r_dict response_identifier N/A len hashes_to_search N/A request N/A N/A N/A self _peer_search_results N/A N/A N/A N/A self _search_for_peers N/A None N/A _get_info_price_request N/A N/A self peer protocol N/A N/A N/A request None N/A N/A N/A protocol N/A self _info_protocol_prices N/A N/A N/A N/A self _info_protocol_prices N/A protocol N/A N/A N/A self payment_rate_manager get_rate_valuable_blob_info peer N/A request_dict N/A blob_length_payment_rate N/A N/A self _info_protocol_prices N/A protocol N/A request N/A ClientRequest request_dict blob_length_payment_rate N/A request N/A _update_local_score N/A N/A self peer amount N/A N/A N/A N/A N/A self _peers N/A peer amount N/A _reserve_points_valuable N/A N/A self peer protocol max_units N/A N/A N/A N/A N/A self _reserve_points peer protocol max_units N/A self _valuable_protocol_prices N/A _reserve_points_info N/A N/A self peer protocol max_units N/A N/A N/A N/A N/A self _reserve_points peer protocol max_units N/A self _info_protocol_prices N/A _reserve_points N/A N/A self peer protocol max_units prices N/A N/A N/A N/A protocol prices N/A points_to_reserve N/A N/A N/A 1.0 max_units N/A prices N/A protocol 1000.0 N/A N/A N/A N/A self wallet reserve_points peer points_to_reserve N/A _pay_or_cancel_payment N/A N/A self arg protocol reserved_points protocol_prices N/A N/A N/A N/A N/A isinstance arg Failure N/A arg 0 N/A N/A N/A N/A self _cancel_points reserved_points N/A N/A N/A N/A self _pay_peer protocol arg reserved_points protocol_prices N/A arg N/A _pay_peer N/A N/A self protocol num_units reserved_points prices N/A N/A N/A N/A num_units 0 N/A N/A protocol prices N/A point_amount N/A N/A N/A 1.0 num_units N/A prices N/A protocol 1000.0 N/A N/A N/A N/A self wallet send_points reserved_points point_amount N/A _cancel_points N/A N/A self reserved_points N/A N/A N/A N/A N/A N/A self wallet cancel_point_reservation reserved_points N/A _handle_valuable_blob_response N/A N/A self response_dict peer request N/A N/A N/A N/A N/A N/A request response_identifier response_dict N/A N/A N/A InvalidResponseError response identifier not in response N/A response N/A response_dict N/A N/A request response_identifier N/A N/A error response N/A N/A N/A N/A response N/A error RATE_UNSET N/A N/A 0 N/A N/A N/A InvalidResponseError N/A Got an unknown error from the peer: %s N/A N/A response N/A error N/A N/A N/A valuable_blob_hashes response N/A N/A N/A InvalidResponseError Missing the required field 'valuable_blob_hashes' N/A hashes N/A response N/A valuable_blob_hashes N/A N/A N/A log info Handling %s valuable blob hashes from %s N/A str N/A len hashes N/A str peer N/A expire_time N/A N/A N/A N/A datetime datetime now N/A N/A datetime timedelta minutes 10 N/A reference None N/A unique_hashes N/A set N/A N/A reference response N/A N/A reference N/A response N/A reference N/A N/A blob_hash peer_score hashes N/A N/A N/A reference None N/A N/A reference blob_hash N/A N/A N/A self _last_blob_hashes_from_peers N/A peer N/A blob_hash expire_time N/A N/A N/A N/A blob_hash N/A self _valuable_hashes N/A blob_hash N/A self _blob_infos N/A N/A N/A N/A self _valuable_hashes N/A blob_hash N/A peer_score reference peer N/A N/A N/A unique_hashes add blob_hash N/A N/A len unique_hashes N/A N/A N/A N/A self _update_local_score peer N/A len unique_hashes N/A N/A N/A peer update_stats downloaded_valuable_blob_hashes N/A len unique_hashes N/A N/A N/A peer update_score N/A len unique_hashes N/A N/A N/A N/A self _update_local_score peer -0.0001 N/A N/A len unique_hashes N/A _handle_info_response N/A N/A self response_dict peer request N/A N/A N/A N/A N/A N/A request response_identifier response_dict N/A N/A N/A InvalidResponseError response identifier not in response N/A response N/A response_dict N/A N/A request response_identifier N/A N/A error response N/A N/A N/A N/A response N/A error RATE_UNSET N/A N/A 0 N/A N/A N/A InvalidResponseError N/A Got an unknown error from the peer: %s N/A N/A response N/A error N/A N/A N/A blob_lengths response N/A N/A N/A InvalidResponseError Missing the required field 'blob_lengths' N/A raw_blob_lengths N/A response N/A blob_lengths N/A N/A N/A log info Handling %s blob lengths from %s N/A str N/A len raw_blob_lengths N/A str peer N/A N/A N/A log debug blobs: %s N/A str raw_blob_lengths N/A infos N/A N/A unique_hashes N/A set N/A N/A blob_hash length raw_blob_lengths N/A N/A N/A blob_hash N/A self _valuable_hashes N/A N/A N/A peer_score reference peer N/A N/A self _valuable_hashes N/A blob_hash N/A N/A N/A self _valuable_hashes N/A blob_hash N/A N/A N/A infos append N/A ValuableBlobInfo blob_hash length reference peer peer_score N/A N/A N/A unique_hashes add blob_hash N/A N/A N/A blob_hash N/A N/A N/A request request_dict N/A blob_length N/A blob_hashes N/A N/A N/A N/A unique_hashes add blob_hash N/A d N/A N/A N/A self info_manager save_blob_infos infos N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A N/A self download_manager add_blobs_to_download infos pay_or_penalize_peer N/A N/A N/A N/A N/A N/A len unique_hashes N/A N/A N/A N/A self _update_local_score peer N/A len unique_hashes N/A N/A N/A peer update_stats downloaded_valuable_blob_infos N/A len unique_hashes N/A N/A N/A peer update_score N/A len unique_hashes N/A N/A N/A N/A self _update_local_score peer -0.0001 N/A N/A len unique_hashes N/A N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A pay_or_penalize_peer N/A d N/A _handle_valuable_price_response N/A N/A self response_dict peer request protocol N/A N/A N/A N/A N/A N/A request response_identifier response_dict N/A N/A N/A InvalidResponseError response identifier not in response N/A N/A protocol N/A self _valuable_protocol_prices N/A response N/A response_dict N/A N/A request response_identifier N/A N/A response RATE_ACCEPTED N/A N/A True N/A N/A N/A N/A self _valuable_protocol_prices N/A protocol N/A N/A N/A N/A self _price_disagreements append peer N/A True N/A _handle_info_price_response N/A N/A self response_dict peer request protocol N/A N/A N/A N/A N/A N/A request response_identifier response_dict N/A N/A N/A InvalidResponseError response identifier not in response N/A N/A protocol N/A self _info_protocol_prices N/A response N/A response_dict N/A N/A request response_identifier N/A N/A response RATE_ACCEPTED N/A N/A True N/A N/A N/A N/A self _info_protocol_prices N/A protocol N/A N/A N/A N/A self _price_disagreements append peer N/A True N/A _request_failed N/A N/A self reason request_type peer N/A N/A N/A N/A N/A reason check RequestCanceledError N/A N/A N/A N/A N/A reason check NoResponseError N/A N/A N/A N/A N/A self _incompatible_peers append peer N/A N/A N/A log warning Valuable blob info requester: a request of type %s has failed. Reason: %s N/A str request_type N/A str N/A N/A reason getErrorMessage N/A N/A N/A self _update_local_score peer -10.0 N/A N/A N/A peer update_score -5.0 N/A N/A N/A reason check ConnectionClosedBeforeResponseError N/A N/A N/A reason N/A _search_for_peers N/A N/A self N/A N/A N/A references_with_sources N/A set N/A h_list N/A N/A N/A self _peer_search_results itervalues N/A N/A h h_list N/A N/A N/A h N/A self _valuable_hashes N/A N/A N/A N/A references_with_sources add N/A N/A N/A self _valuable_hashes N/A h N/A 1 N/A hash_to_search None N/A used_references N/A N/A N/A h N/A s r p N/A N/A N/A self _valuable_hashes iteritems N/A N/A N/A N/A r used_references N/A N/A N/A N/A used_references append r N/A hash_to_search h N/A N/A N/A r references_with_sources N/A N/A N/A hash_to_search N/A N/A d N/A N/A N/A self peer_finder find_peers_for_blob hash_to_search N/A N/A N/A d addCallback N/A self _set_peer_search_results hash_to_search N/A _set_peer_search_results N/A N/A self peers searched_hash N/A N/A N/A peer peers N/A N/A N/A N/A N/A N/A self _peer_search_results N/A peer append searched_hash N/A N/A