Skip to content

Commit

Permalink
Miner pool support (#4044)
Browse files Browse the repository at this point in the history
* Fix stratum rpc client

* Fix subscribe id && and more log

* stratum: diff manager

* stratum: hash rate caculate

* Refactor diff manager

* Fix clippy and format

* Rebase with master
  • Loading branch information
sanlee42 authored May 6, 2024
1 parent c5b85a3 commit ad2c6a0
Show file tree
Hide file tree
Showing 7 changed files with 367 additions and 130 deletions.
194 changes: 143 additions & 51 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions cmd/miner_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ starcoin-consensus = { package = "starcoin-consensus", workspace = true }
starcoin-crypto = { package = "starcoin-crypto", workspace = true }
futures = { workspace = true }
futures-channel = { workspace = true }
jsonrpc-core = { features = ["arbitrary_precision"], workspace = true }
jsonrpc-core-client = { workspace = true }
jsonrpc-server-utils = { workspace = true }

jsonrpc-server-utils = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19" }
jsonrpc-core = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19", features = ["arbitrary_precision"] }
jsonrpc-core-client = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19" }

starcoin-logger = { package = "starcoin-logger", workspace = true }
starcoin-config = { workspace = true }
starcoin-time-service = { workspace = true }
Expand Down
10 changes: 5 additions & 5 deletions stratum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ anyhow = { workspace = true }
byteorder = { workspace = true }
futures = { workspace = true }
hex = { default-features = false, workspace = true }
jsonrpc-core = { features = ["arbitrary_precision"], workspace = true }
jsonrpc-core-client = { workspace = true }
jsonrpc-derive = { workspace = true }
jsonrpc-pubsub = { workspace = true }
jsonrpc-tcp-server = { workspace = true }
jsonrpc-tcp-server = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19" }
jsonrpc-derive = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19" }
jsonrpc-core = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19", features = ["arbitrary_precision"] }
jsonrpc-pubsub = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19" }
jsonrpc-core-client = { git = "https://github.com/starcoinorg/jsonrpc", rev = "e895b6cc5897f3813a953a9a6bb4718b4856ab19" }
serde = { workspace = true }
serde_json = { features = ["arbitrary_precision"], workspace = true }
starcoin-config = { workspace = true }
Expand Down
Loading

0 comments on commit ad2c6a0

Please sign in to comment.