6 releases (stable)

1.2.1 Aug 13, 2024
1.2.0 Aug 9, 2024
1.1.0 May 24, 2024
1.0.0 Mar 22, 2024
0.1.1 Feb 15, 2024

#4 in #sv2

Download history 85/week @ 2024-07-15 27/week @ 2024-07-22 31/week @ 2024-07-29 100/week @ 2024-08-05 188/week @ 2024-08-12 107/week @ 2024-08-19 93/week @ 2024-08-26 23/week @ 2024-09-02 10/week @ 2024-09-09 47/week @ 2024-09-16 93/week @ 2024-09-23 62/week @ 2024-09-30 13/week @ 2024-10-07 48/week @ 2024-10-14 47/week @ 2024-10-21 29/week @ 2024-10-28

140 downloads per month
Used in 6 crates

MIT/Apache

645KB
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

~11MB
~149K SLoC