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

Added stages to the sync info rpc type #1079

Merged
merged 7 commits into from
Jul 19, 2024

Conversation

loocapro
Copy link
Contributor

@loocapro loocapro commented Jul 19, 2024

Motivation

Ref: paradigmxyz/reth#7838

CC: @mattsse

Solution

Adding a new optional field to sync info to show stages sync detail on eth_syncing rpc method.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

crates/rpc-types-eth/src/syncing.rs Outdated Show resolved Hide resolved
@loocapro loocapro requested a review from mattsse July 19, 2024 10:47
crates/rpc-types-eth/src/syncing.rs Outdated Show resolved Hide resolved
@gakonst
Copy link
Member

gakonst commented Jul 19, 2024

will also need to wire it here! https://github.com/paradigmxyz/reth/blob/9e685163deb57b2a2e1661195c093071d1e85647/crates/rpc/rpc/src/eth/helpers/spec.rs#L55-L62 thx for taking this on

@loocapro loocapro requested a review from mattsse July 19, 2024 11:08
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

last nits eheh

crates/rpc-types-eth/src/syncing.rs Outdated Show resolved Hide resolved
crates/rpc-types-eth/src/syncing.rs Outdated Show resolved Hide resolved
crates/rpc-types-eth/src/syncing.rs Outdated Show resolved Hide resolved
@mattsse mattsse merged commit 0ddad90 into alloy-rs:main Jul 19, 2024
22 checks passed
zerosnacks pushed a commit that referenced this pull request Jul 22, 2024
* Added stages to the sync info rpc type (#1079)

* added stages detail

* boxed enum

* from hashmap to vec with helper type

* serde alias and renames and dos

* Update crates/rpc-types-eth/src/syncing.rs

Co-authored-by: Matthias Seitz <[email protected]>

* Update crates/rpc-types-eth/src/syncing.rs

Co-authored-by: Matthias Seitz <[email protected]>

* property to pub

---------

Co-authored-by: Matthias Seitz <[email protected]>

* removing async get account (#1080)

* fix(node-bindings): backport fix from ethers-rs (#1081)

* feat(consensus): add `From<ConsolidationRequest>` for `Request` (#1083)

consensus: add From<ConsolidationRequest> for Request

* fix(eips): make SignedAuthorizationList arbitrary less fallible (#1084)

* chore: export rpc account type (#1075)

* Update debug.rs

* Update debug.rs

---------

Co-authored-by: Luca Provini <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: StackOverflowExcept1on <[email protected]>
Co-authored-by: Thomas Coratger <[email protected]>
Co-authored-by: Dan Cline <[email protected]>
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* added stages detail

* boxed enum

* from hashmap to vec with helper type

* serde alias and renames and dos

* Update crates/rpc-types-eth/src/syncing.rs

Co-authored-by: Matthias Seitz <[email protected]>

* Update crates/rpc-types-eth/src/syncing.rs

Co-authored-by: Matthias Seitz <[email protected]>

* property to pub

---------

Co-authored-by: Matthias Seitz <[email protected]>
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.

3 participants