Git Product home page Git Product logo

stratum's People

Contributors

4ss0 avatar bcral avatar ccdle12 avatar colefd avatar darricksee avatar djozis avatar douglaz avatar eunoia1729 avatar fi3 avatar gitgab19 avatar github-actions[bot] avatar ikeogu avatar jakubtrnka avatar kodylow avatar krisztiankurucz avatar lobarrel avatar lorbax avatar louneskmt avatar nonsoamadi10 avatar pavlenex avatar plebhash avatar priceless-p avatar rockcoolsaint avatar rrybarczyk avatar rustynirvana avatar sjors avatar star-gazer111 avatar tusharv01 avatar unidenifieduser avatar vincenzopalazzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stratum's Issues

Realize Proxy For Alpha Trial

Realize Proxy For Alpha Trial

What

Intermediate phase of Realize Proxy. It consist in the realization of a proxy with all what is
needed in order to do an alpha trial of Sv2

Why

We want to prioritize the alpha trial as feedbacks and reviews of what has been done is very much
needed.

How

Realize Proxy

Realize Proxy

What

Realization of a proxy that is:

  • configurable (easy to configure for the wanted scenario via config files)
  • efficient (it must be fast)
  • expandable (it must be easy to modify the code in order to add new supported scenarios)
  • easy to use (deploy the proxy must be very easy)

Why

TODO

How

Use `shrink` for prop tests

When implementing Arbitrary we should also implement shrink.

Example from @Fi3:

fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
           let value = self.clone().0;
           match value.template_id {
               0 => empty_shrinker(),
               _ => {
                   let mut shrinked_ids: Vec<NewTemplate> = vec![];
                   for id in 0..value.template_id {
                       let mut shrinked_value = value.clone();
                       shrinked_value.template_id = id;
                       shrinked_ids.push(shrinked_value);
                   };
                   Box::new(shrinked_ids.into_iter().map(|x| RandomNewTemplate(x)))
               }
           }
       }

Template Provider Implementation and Integration

Improve roles-logic-sv2 interface usability

Improve messages-sv2 interface usability

The crate messages-sv2 that is a crate that stay between the low levels crates (subprotocols, codec,
noise, binary, framing) and the high level roles implementation it export an interface that make some very
recurrent operation rather complex to execute. The exported interface should be refactored in order
to make this operations easier. (Performance must have priority on usability btw)

Run GitHub Actions rustfmt on Examples

When running rustfmt on the examples, the compiler complains that async features are not permitted in Rust 2015 and suggests to update the Cargo.toml to the 2018 edition. However, the Cargo.toml does specify the 2018 edition. I do not know where this discrepancy is originating from.

$ rustfmt examples/sv1-client-and-server/src/*
error[E0670]: `async fn` is not permitted in Rust 2015
  --> /home/rrybarczyk/Dev/stratum-v2/stratum/examples/sv1-client-and-server/src/main.rs:43:1
   |
43 | async fn server_pool() {
   | ^^^^^ to use `async fn`, switch to Rust 2018 or later
   |
   = help: set `edition = "2018"` in `Cargo.toml`
   = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error[E0670]: `async fn` is not permitted in Rust 2015
  --> /home/rrybarczyk/Dev/stratum-v2/stratum/examples/sv1-client-and-server/src/main.rs:55:9
   |
55 |     pub async fn new(stream: TcpStream) -> Arc<Mutex<Self>> {
   |         ^^^^^ to use `async fn`, switch to Rust 2018 or later
   |
   = help: set `edition = "2018"` in `Cargo.toml`
   = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found keyword `move`
  --> /home/rrybarczyk/Dev/stratum-v2/stratum/examples/sv1-client-and-server/src/main.rs:63:27
   |
63 |         task::spawn(async move {
   |                           ^^^^ expected one of 8 possible tokens

To solve this issue, the reason for edition discrepancy needs to be found and fixed, then the rustfmt lint action needs to be added to .github/workflows/rust.yaml for each example.

Refactor Errors

Refactor Errors

Errors in the low level crates are not well designed. That because it would have been much more effective to
design them when the low level crates are functionally complete tested and used in other crates.
So all the Error(s) in the project must be refactored.

  • #51
  • #52 that means that each TODO is either:
    1. resolved
    2. removed
    3. transformed into github issues
  • #78

Useful links

Create SV2 Pool Application

Realize Pool

What

Realization of a pool that can be used in production environment

  • efficient (it must be fast)
  • easy to use (deploy the pool must be very easy)

Why

In order for Sv2 to succeed, operational cost for a pool to support it must be low, and implementation cost must be near 0.

How

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.