Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Stratum protocol general #1954

Merged
merged 17 commits into from
Aug 19, 2016
Merged

Stratum protocol general #1954

merged 17 commits into from
Aug 19, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Aug 18, 2016

to keep it small and reviewable, first part of protocol

at this point, it's pretty generic and just manages connected workers without pow-specific burden

it's up to higher level code to produce ethereum- / bitcoin- specific work packages for workers (via implementing JobDispatcher)

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Aug 18, 2016

use json_tcp_server::Server as JsonRpcServer;
use jsonrpc_core::{IoHandler, Params, IoDelegate, to_value, from_params};
use std::sync::{Arc, RwLock, RwLockReadGuard};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use parking_lot stuff here (use util::{RwLock, RwLockReadGuard})

@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 18, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 87.01% when pulling e1fcbc5 on stratum into d279794 on master.

@@ -179,6 +182,32 @@ impl PushWorkHandler for Stratum {
}
}

lazy_static! {
static ref LOG_DUMMY: bool = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think either this or the lazy_static! invocation can be marked as #[cfg(test)] also

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 87.025% when pulling 2fedcba on stratum into d279794 on master.

@NikVolf NikVolf mentioned this pull request Aug 18, 2016
@arkpar arkpar merged commit 070a215 into master Aug 19, 2016
@arkpar arkpar deleted the stratum branch October 3, 2016 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants