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

fix(admin): id in NodeInfo is string instead of B256 #1038

Merged
merged 3 commits into from
Jul 13, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Jul 11, 2024

Motivation

Return the same response type as geth's, ref https://github.com/ethereum/go-ethereum/blob/v1.14.0/p2p/server.go#L1078-L1079

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
crates/node-bindings/src/geth.rs Outdated Show resolved Hide resolved
crates/node-bindings/src/geth.rs Outdated Show resolved Hide resolved
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.

nice find, I believe I couldn't figure out what the correct value here is

Signed-off-by: jsvisa <delweng@gmail.com>
@jsvisa jsvisa requested review from mattsse and DaniPopes July 11, 2024 14:52
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.

lgtm
ty

@DaniPopes if we release alloy with this fix alloy as a patch, this will break 1.0.1 reth build for some folks

@mattsse mattsse merged commit e3cc1ff into alloy-rs:main Jul 13, 2024
22 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* fix(admin): id in NodeInfo is string instead of B256

Signed-off-by: jsvisa <delweng@gmail.com>

* fix testcase

Signed-off-by: jsvisa <delweng@gmail.com>

* apply code review

Signed-off-by: jsvisa <delweng@gmail.com>

---------

Signed-off-by: jsvisa <delweng@gmail.com>
j75689 pushed a commit to bnb-chain/alloy that referenced this pull request Aug 1, 2024
* fix(admin): id in NodeInfo is string instead of B256

Signed-off-by: jsvisa <delweng@gmail.com>

* fix testcase

Signed-off-by: jsvisa <delweng@gmail.com>

* apply code review

Signed-off-by: jsvisa <delweng@gmail.com>

---------

Signed-off-by: jsvisa <delweng@gmail.com>
@jsvisa jsvisa deleted the admin-nodeInfo branch October 20, 2024 06:54
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