Commit 8303654
Merge main to nomium-main (#22)
* tp_authority_public_key update
* lock version for cargo semver-checks
* Use shorter relative path
.. and fix some styling inconsistency
* Rewrite docs in `common_messages_sv2` ..
As part of the effort to improve Stratum V2 protocols docs, this commit
aims to improves and make the documentation more comprehensive and
accessible for contributors and end users alike.
* Add README.md ..
Use the template README used across the different Stratum V2 protocol
crates to `common_messages_sv2` crate.
* modify sv2.h to make it consistent with comments changes
* Use shorter relative path
* Add README file
* Improve Job Declaration Documentation
* Add README file
* Use shorter paths
* Improve `Template Distribution` subprotocol docs
* modify sv2.h to make it consistent with comments changes
* add binary-sv2 docs
* add binary-sv2 readme.md
* add binary-sv2 custom trait example
* add binary-sv2 no-serde derive-codec docs
* add binary-sv2 no-serde derive-codec readme
* add binary-sv2 no-serde codec readme
* add binary-sv2 no-serde codec docs
* update sv2.h for binary_sv2 docs
* change doc test in derive_codec
* Minor warning and error grammar and typo fixes
* bump jdc
* Slice docs
* Buffer docs
* Lib WriteError, Write, Buffer docs
* Back buffer pool docs
* Front buffer pool docs
* InnerMemory buffer pool docs
* PoolMode docs
* BufferPool docs
* Top buffer_pool mod docs
* Buffer pool examples
* Top level crate docs + clean up
* Update README
* Sniffer::wait_for_message_type
* fix unwrap on sv1-mining-device tcp connection..
Update roles/test-utils/mining-device-sv1/src/client.rs
Co-authored-by: jbesraa <jbesraa@gmail.com>
* remove redundant Drop implementation from ITF TemplateProvider
* Add `translator_sv2` test
* use macos-14 as macos runner
* disable MG tproxy CI
* Have JDS ping local mempool less frequently
Otherwise Bitcoin Core -debug=rpc logging becomes too noisy.
* Use shorter paths
* Add README mining subprotocol
* Rewrite mining subprotocol docs
* Create a lib for `mining-sv2-proxy`
* Add `mining-sv2-proxy` initializer
* lock semver-checks to 37 while replacing MSRV with stable
* bump serde_v2 major to 2.0.0..
since v37, cargo semver-checks enforces that removal of features are breaking changes
therefore we need to update serde_v2 as a follow up to stratum-mining#1230
* bump binary_sv2 for serde_sv2 dependency..
since we bumpbed serde_sv2 to 2.0.0
* bump sv2_ffi for serde_sv2 dependency..
since we bumpted serde_sv2 to 2.0.0
* bump roles/Cargo.lock..
since we bumped serde_sv2 and binary_sv2
* bump const_sv2 major to 3.0.0..
since v37, cargo semver-checks enforces that removal of features are breaking changes
therefore we need to update serde_v2 as a follow up to stratum-mining#1230
* bump noise_sv2 for const_sv2 dependency..
since we bumpbed const_sv2 to 3.0.0
* bump framing_sv2 for const_sv2 dependency..
since we bumpbed const_sv2 to 3.0.0
* bump codec_sv2 for const_sv2 dependency..
since we bumpbed const_sv2 to 3.0.0
* bump subprotocols for const_sv2 dependency..
since we bumpbed const_sv2 to 3.0.0
* bump sv2_ffi for const_sv2 dependency..
since we bumpbed const_sv2 to 3.0.0
* bump roles_logic_sv2 for const_sv2 dependency..
since we bumpbed const_sv2 to 3.0.0
* bump roles due to const_sv2 bump to 3.0.0
* bump framing_sv2 major to 3.0.0..
since v37, cargo semver-checks enforces that removal of features are breaking changes
therefore we need to update framing_v2 as a follow up to stratum-mining#1230
* bump codec_sv2 for framing_sv2 dependency..
since we bumped framing_sv2 to 3.0.0
* bump framing_sv2 dendency version on roles_logic_sv2..
crate version has already been bumped before release. no need to bump again
* bump roles due to framing_sv2 bump
* bump benches due to framing_sv2 bump
* bump message_generator_sv2 due to const_sv2
* change macos-14 to macos-13
* bump buffer_sv2..
as a follow up to stratum-mining#1230
* bump buffer_sv2 dep on roles/Cargo.lock
* bump buffer_sv2 dep on utils/Cargo.lock
* bump derive_codec_sv2..
as a consequence of stratum-mining#1231
* bump derive_codec_sv2 dep on roles/Cargo.lock
* Add framing sv2 frame and handshake frame ex
* /// -> // for private types+fns
* framing mod doc cmts + clean
* Add framing README
* add codecov.yml to remove ci error
* feat: update println! and eprintln! to info using tracing cargo.
* Wait for `NewTemplate` message to arrive instead
of failing if it is not there yet when we first check
* ci: bump TP to 0.1.13
* test: increase TP log timestamp precision
Also log rpc calls.
* `common_messages_sv2` `job_declaration_sv2` `mining_sv2` `template_distribution_sv2`: remove the `no_std` feature and make them `#![no_std]` as they never use `std` anywhere.
- bump their MAJOR version because of feature removal
- bump the dependant crates PATCH version
- updates docs
* fix: clarify logging
* remove readme field from Cargo.toml of crates that dont have a README.md
* add release-libs.sh
* release-libs.yaml use 1.75.0 toolchain
* remove readme field from Cargo.toml of crates that dont have a README.md
* avoid publishing protocols crates with all-features..
publishing with all-features is overengineering:
- no_std is being deprecated
- with_serde will be deprecated soon
- for crates with relevant features, we specifically list them for publishing
* min_ntime fix to use the one sent by TP
* header_timestamp_value_assertion_in_new_extended_mining_job test addition
* bump PATCH after timestamp-bug fix (stratum-mining#1324)
* update lockfile after roles_logic patch
* Test Pool role behavior if bad `coinbase_output`..
is provided
* Remove bad pool config MG test
* Move sniffer test to a separate file
* Derive Clone+Debug for `JobDeclaratorClient`
* Derive Clone+Debug for `JobDeclaratorServer`
* Align all integration test start_* ..
functions return signature
* Make Sniffer::drop output more verbose
* Add README.md to integration-tests
* Move integration tests to separate GH action
* Rename integration tests crate..
it's important to have a descriptive name for when this is published to crates.io
* Modularize integration tests APIs..
into the following modules:
- lib: with general purpose functions (e.g.: starters)
- sniffer
- template_provider
* Remove redundant `TestPoolSv2`..
this struct is redundant and no other roles follow this pattern
we can do the initialization inside `start_pool`
* Fix variable naming on `wait_for_client`..
the `SocketAddr` is not a client, but the socket where we will listen to
also, `listner` is a typo
* Rename sniffer channel variables..
the original naming was confusing copypasta
* Create `utils.rs` in `tests-integration`
..to hold utility functions used internaly only.
* noise_sv2: keep current (std) API unchanged, add a no_std compliant API with `*_with_rng` and `*_with_now`
* generate cargo lock
---------
Co-authored-by: GitGab19 <gabriele.vernetti@protonmail.com>
Co-authored-by: plebhash <147345153+plebhash@users.noreply.github.com>
Co-authored-by: plebhash <plebhash@proton.me>
Co-authored-by: jbesraa <jbesraa@gmail.com>
Co-authored-by: bit-aloo <sshourya17@gmail.com>
Co-authored-by: Gabriele Vernetti <62447440+GitGab19@users.noreply.github.com>
Co-authored-by: Pavlenex <36959754+pavlenex@users.noreply.github.com>
Co-authored-by: RJ Rybarczyk <rj@rybar.tech>
Co-authored-by: Sjors Provoost <sjors@sprovoost.nl>
Co-authored-by: devworlds <jeffluizblockchain@gmail.com>
Co-authored-by: Georges Palauqui <georges.palauqui@gptechinno.com>
Co-authored-by: Gary Krause <gary.krause@mara.com>
Co-authored-by: Oleg Akulov <o.akulov@nomium.org>1 parent 71814c1 commit 8303654
File tree
95 files changed
+2228
-1691
lines changed- .github/workflows
- benches
- protocols/v2
- binary-sv2
- binary-sv2
- no-serde-sv2
- codec
- derive_codec
- serde-sv2
- codec-sv2
- const-sv2
- framing-sv2
- examples
- src
- noise-sv2
- examples
- src
- roles-logic-sv2
- src
- subprotocols
- common-messages
- src
- job-declaration
- src
- mining
- src
- template-distribution
- src
- sv2-ffi
- roles
- jd-client
- src/lib
- jd-server
- config-examples
- src/lib
- mining-proxy
- src
- lib
- pool
- src/lib
- roles-utils
- network-helpers
- rpc
- test-utils
- mining-device-sv1
- src
- mining-device
- tests-integration
- lib
- tests
- common
- translator
- src/lib
- scripts
- test/message-generator/test/bad-pool-config-test
- utils
- buffer
- error-handling
- message-generator
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+2228
-1691
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 14 | | |
25 | 15 | | |
26 | 16 | | |
| |||
167 | 157 | | |
168 | 158 | | |
169 | 159 | | |
170 | | - | |
171 | 160 | | |
172 | 161 | | |
173 | 162 | | |
| |||
188 | 177 | | |
189 | 178 | | |
190 | 179 | | |
191 | | - | |
192 | | - | |
| 180 | + | |
193 | 181 | | |
194 | 182 | | |
195 | 183 | | |
| |||
209 | 197 | | |
210 | 198 | | |
211 | 199 | | |
212 | | - | |
| 200 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | | - | |
| 27 | + | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| 31 | + | |
35 | 32 | | |
36 | | - | |
37 | 33 | | |
38 | | - | |
39 | | - | |
| 34 | + | |
| 35 | + | |
40 | 36 | | |
41 | | - | |
42 | 37 | | |
43 | | - | |
44 | | - | |
| 38 | + | |
| 39 | + | |
45 | 40 | | |
46 | | - | |
47 | 41 | | |
48 | | - | |
49 | | - | |
| 42 | + | |
| 43 | + | |
50 | 44 | | |
51 | | - | |
52 | 45 | | |
53 | | - | |
54 | | - | |
| 46 | + | |
| 47 | + | |
55 | 48 | | |
56 | | - | |
57 | 49 | | |
58 | | - | |
59 | | - | |
| 50 | + | |
| 51 | + | |
60 | 52 | | |
61 | | - | |
62 | 53 | | |
63 | | - | |
64 | | - | |
| 54 | + | |
| 55 | + | |
65 | 56 | | |
66 | | - | |
67 | 57 | | |
68 | | - | |
69 | | - | |
| 58 | + | |
| 59 | + | |
70 | 60 | | |
71 | | - | |
72 | 61 | | |
73 | | - | |
74 | | - | |
| 62 | + | |
| 63 | + | |
75 | 64 | | |
76 | | - | |
77 | 65 | | |
78 | | - | |
79 | | - | |
| 66 | + | |
| 67 | + | |
80 | 68 | | |
81 | | - | |
82 | 69 | | |
83 | | - | |
84 | | - | |
| 70 | + | |
| 71 | + | |
85 | 72 | | |
86 | | - | |
87 | 73 | | |
88 | | - | |
89 | | - | |
| 74 | + | |
| 75 | + | |
90 | 76 | | |
91 | | - | |
92 | 77 | | |
93 | | - | |
94 | | - | |
| 78 | + | |
| 79 | + | |
95 | 80 | | |
96 | | - | |
97 | 81 | | |
98 | | - | |
99 | | - | |
| 82 | + | |
| 83 | + | |
100 | 84 | | |
101 | | - | |
102 | 85 | | |
103 | | - | |
104 | | - | |
| 86 | + | |
| 87 | + | |
105 | 88 | | |
106 | | - | |
107 | 89 | | |
108 | | - | |
109 | | - | |
| 90 | + | |
| 91 | + | |
110 | 92 | | |
111 | | - | |
112 | 93 | | |
113 | | - | |
114 | | - | |
| 94 | + | |
| 95 | + | |
115 | 96 | | |
116 | | - | |
117 | 97 | | |
118 | | - | |
119 | | - | |
| 98 | + | |
| 99 | + | |
120 | 100 | | |
121 | | - | |
122 | 101 | | |
123 | | - | |
124 | | - | |
| 102 | + | |
| 103 | + | |
125 | 104 | | |
126 | | - | |
127 | 105 | | |
128 | | - | |
129 | | - | |
| 106 | + | |
| 107 | + | |
130 | 108 | | |
131 | | - | |
132 | 109 | | |
133 | | - | |
134 | | - | |
| 110 | + | |
| 111 | + | |
135 | 112 | | |
136 | | - | |
137 | 113 | | |
138 | | - | |
139 | | - | |
| 114 | + | |
| 115 | + | |
140 | 116 | | |
141 | | - | |
142 | 117 | | |
143 | | - | |
144 | | - | |
| 118 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
0 commit comments