8 releases (stable)

new 1.2.3 Jan 8, 2025
1.2.2 Jan 7, 2025
1.2.1 Aug 13, 2024
1.1.0 May 24, 2024
0.1.1 Feb 15, 2024

#186 in Magic Beans

Download history 76/week @ 2024-09-21 78/week @ 2024-09-28 15/week @ 2024-10-05 42/week @ 2024-10-12 53/week @ 2024-10-19 23/week @ 2024-10-26 24/week @ 2024-11-02 11/week @ 2024-11-09 16/week @ 2024-11-16 24/week @ 2024-11-23 14/week @ 2024-11-30 72/week @ 2024-12-07 42/week @ 2024-12-14 8/week @ 2024-12-21 1/week @ 2024-12-28 250/week @ 2025-01-04

305 downloads per month
Used in 6 crates

MIT/Apache

665KB
11K SLoC

Provides all relevant types, traits and functions to implement a valid SV2 role.

  • For channel and job management, see channel_logic, which utilizes job_creator and job_dispatcher
  • For message handling, the traits in handlers should be implemented
  • For basic traits every implementation should use, see common_properties
  • Routers in routing_logic are used by the traits in handlers to decide which downstream/upstream to relay/send by using selectors
  • For serializing/deserializing messages, see parsers
  • see utils for helpers such as safe locking, target and merkle root calculations
 MiningDevice:
     common_properties::IsUpstream +
     common_properties::IsMiningUpstream +
     handlers::common::ParseUpstreamCommonMessages +
     handlers::mining::ParseUpstreamMiningMessages +

 Pool:
     common_properties::IsDownstream +
     common_properties::IsMiningDownstream +
     handlers::common::ParseDownstreamCommonMessages +
     handlers::mining::ParseDownstreamMiningMessages +

 ProxyDownstreamConnetion:
     common_properties::IsDownstream +
     common_properties::IsMiningDownstream +
     handlers::common::ParseDownstreamCommonMessages +
     handlers::mining::ParseDownstreamMiningMessages +

 ProxyUpstreamConnetion:
     common_properties::IsUpstream +
     common_properties::IsMiningUpstream +
     handlers::common::ParseUpstreamCommonMessages +
     handlers::mining::ParseUpstreamMiningMessages +

Dependencies

~8.5MB
~114K SLoC