Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test check-versioning-lib-release.sh #56

Closed
wants to merge 127 commits into from
Closed

test check-versioning-lib-release.sh #56

wants to merge 127 commits into from

Conversation

plebhash
Copy link
Owner

No description provided.

@plebhash plebhash force-pushed the dev branch 2 times, most recently from 4b28d14 to 6349d87 Compare May 31, 2024 00:07
plebhash and others added 27 commits August 9, 2024 17:22
…versioning

bump `common_messages_sv2` version
…versioning

bump `roles_logic_sv2` version
- Add `start` function and put starting logic there.
- Every AbortHandle of each task is stored in a collector, which is a
mutex.
- Added `kill_tasks` function that takes in input this mutex, access
it, pop each JoinHandle and kill the corresponding task.

When receive an UpstreamShutdown does the following:
1. waits a random amount of time s 0<s<3 secs (if there 100000 TProxies,
then 100000 proxies will connect again _at the same time_).
2. calls `kill_tasks`
3. calls `start`

use tokio::task in favor of async_std::task
…-if-disconnected-from-upstream

Translator restart if disconnected from upstream
…ass-feature-roles-logic-sv2

bypass `cargo semver-checks --all-features` for roles_logic_sv2
…c-sv2-serde-flag

patch `roles_logic_sv2` `with_serde` flag
fixed the fallback to solo-mining in the case that the
upstream sends a `SubmitShareError` on a valid share AND there are no
other available upstreams in the JDC config.
…fallback-to-solo-mining

Fix JDC fallback to solo-mining
In no-serde-sv2 an sv2 sequence is generic over T. If we want this
sequence to be Deserialize we need T to be Fixed and GerMarker. This 2
traits were private since all the sv2 types are already defined in
no-serde-sv2. But if we want to use sv2 types defined in an sv2
extensions we need to make these traits public.

The Encodable dervive macro in derive_codec implement GetSize for the
passed struct. But GetSize is also a blanket implementation for every
type that implement Fixed. So if we implement Fixed for our new sv2 type
and then we derive Encodable (commonly renamed Serialize) we get an
error. This commit add an attribute to Encodable called already_sized if the
struct that we want derive Encodable is market as already_sized the
macro will not implement GetSize for it.

This commit also bump minor version of derive_codec and no-serde-sv2
consequentially also of binary-sv2 since it reexport the above libs.
…nTypes

Add support for data types defined by sv2 extensions
@plebhash plebhash closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.