Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-network-consensus/src/lib.rs

cre8-app-network-consensus · module crate root · src · 1,742 lines (1,516 code, 83 comment) · sha 8f6b8c64eda3c751

Items

struct PeerTruthView struct ConsensusPlanRequest struct ConsensusPlan struct ConsensusCoverKernelInput struct PeerRouteView struct RoutePlanRequest struct RoutePlan struct CoverageLevel struct RouteConvergenceStep struct RouteCandidatePreview struct CompatibleRoutePeer struct RoutePlanLimits struct RouteStopFlags struct RouteCandidateScore struct RoutePlanContext struct RouteSelection

Functions

By call-graph weight (PageRank; 1.0 is the average function). 66 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
build_route_plansrc/lib.rs:1073fn1521164.4
build_consensus_plansrc/lib.rs:730fn1317733.1
effective_thresholdsrc/lib.rs:229fn92502.6
truth_demand_keysrc/lib.rs:404fn31401.5
capability_demand_keysrc/lib.rs:408fn31401.5
consensus_account_keysrc/lib.rs:188fn71201.5
peer_compatiblesrc/lib.rs:239fn112201.5
empty_route_plansrc/lib.rs:362fn411101.4
decrement_route_demand_keysrc/lib.rs:567fn52101.1
build_route_demandsrc/lib.rs:412fn195121.1
route_plan_contextsrc/lib.rs:880fn281161.1
route_plan_has_empty_requirementssrc/lib.rs:909fn32101.1
empty_route_plan_from_contextsrc/lib.rs:913fn111111.1
select_route_peerssrc/lib.rs:958fn253121.1
finish_route_plansrc/lib.rs:984fn8831111.1
achieved_ratio_from_unitssrc/lib.rs:925fn32201
choose_next_route_candidatesrc/lib.rs:508fn376151
apply_route_selection_candidatesrc/lib.rs:933fn241121
route_candidate_fits_budgetsrc/lib.rs:469fn91200.9
route_candidate_fits_cost_per_unitsrc/lib.rs:479fn31200.9
decrement_route_demandsrc/lib.rs:546fn91130.9
route_gain_unitssrc/lib.rs:436fn193230.8
score_route_candidatesrc/lib.rs:456fn122200.8
better_route_candidatesrc/lib.rs:483fn245200.8
peer_route_compatiblesrc/lib.rs:251fn112100.8
clean_item_setsrc/lib.rs:320fn31100.8
decrement_route_demand_for_itemssrc/lib.rs:556fn102110.8
demand_remainingsrc/lib.rs:432fn31100.7
route_candidate_previewsrc/lib.rs:652fn171120.7
clean_unique_itemssrc/lib.rs:316fn31100.7
build_compatible_route_peerssrc/lib.rs:324fn121120.7
route_target_truth_ksrc/lib.rs:337fn123110.7
route_target_capability_ksrc/lib.rs:350fn113100.7
route_plan_limitssrc/lib.rs:862fn71100.7
route_plan_total_unitssrc/lib.rs:870fn91100.7
tie_breaker_peersrc/lib.rs:1714fn141100.6
tie_breaker_scoresrc/lib.rs:1729fn31100.6
default_weightsrc/lib.rs:180fn31100.6
default_relay_costsrc/lib.rs:184fn31100.6
build_consensus_cover_kernel_inputsrc/lib.rs:196fn322130.6
coverage_for_itemssrc/lib.rs:573fn173100.6
unsatisfied_itemssrc/lib.rs:591fn71100.6
unmet_units_for_itemssrc/lib.rs:599fn71100.6
coverage_level_curvesrc/lib.rs:607fn132100.6
route_budget_exhaustedsrc/lib.rs:621fn94100.6
route_stop_reasonsrc/lib.rs:631fn205100.6
next_route_candidatessrc/lib.rs:670fn321130.6
route_coverage_per_costsrc/lib.rs:929fn32100.6
effective_threshold_blends_k_and_market_ratiosrc/lib.rs:1094fn41010.5
build_plan_solves_multicover_for_k2src/lib.rs:1100fn381010.5
build_plan_enforces_app_hash_compatibility_when_requestedsrc/lib.rs:1140fn301010.5
account_collapse_groups_multiple_peers_into_one_attestorsrc/lib.rs:1174fn412010.5
account_collapse_treats_none_as_singleton_for_back_compatsrc/lib.rs:1217fn401010.5
account_collapse_ignores_weight_inflation_within_accountsrc/lib.rs:1259fn331010.5
route_plan_covers_truths_and_capabilitiessrc/lib.rs:1294fn381010.5
route_plan_respects_app_hash_policysrc/lib.rs:1334fn371010.5
route_plan_prefers_lower_relay_cost_for_equal_coveragesrc/lib.rs:1373fn371010.5
route_plan_reports_nonzero_gap_when_market_cannot_cover_targetssrc/lib.rs:1412fn291010.5
route_plan_honors_max_total_relay_cost_budgetsrc/lib.rs:1443fn421010.5
route_plan_honors_max_cost_per_unit_thresholdsrc/lib.rs:1487fn321010.5
defaults_and_kernel_input_cover_filtered_targets_and_accountssrc/lib.rs:1521fn401040.5
consensus_plan_with_empty_truths_is_immediately_metsrc/lib.rs:1563fn231010.5
route_plan_with_empty_requirements_returns_empty_plansrc/lib.rs:1588fn321010.5
route_plan_reports_max_selected_stop_reasonsrc/lib.rs:1622fn391010.5
route_plan_skips_zero_gain_and_orders_tied_next_candidatessrc/lib.rs:1663fn501010.5
route_candidate_tie_breakers_cover_gain_weight_and_peer_idsrc/lib.rs:1734fn81030.5

Source not readable from this process.