Skip to content

Rpc & log fixes #1862

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

Closed
wants to merge 2 commits into from
Closed

Rpc & log fixes #1862

wants to merge 2 commits into from

Conversation

jagerman
Copy link
Member

While testing changes for 11.4.0, I found a log statement bug and some inconsistencies in RPC commands:

  • When a l2 vote mismatch appears, the block votes were being printed twice instead of block votes and local votes.
  • RPC: get_accrued_rewards: properly format ETH addresses
  • RPC: bls_exit_liquidation_list: refactored it to use existing SN info serialization code, which fixes a bunch of inconsistencies and issues (see commit message). Also made it take a "fields" parameter which is already handled by the existing generic SN info code and so nearly free to implement.
  • SN info serialization code was including an empty "locked_contribution" list, but that list should only be included for pre-ETH HF contributions.

jagerman added 2 commits May 28, 2025 19:18
- `get_accrued_rewards`: properly format ETH addresses

- `bls_exit_liquidation_list`: refactor to use existing serialization
  for service node info instead of trying to shoehorn and edit the
  binary serialization into acceptable output.  This fixes numerous
  inconsistencies between the info returned here, and the info returned
  by other snode-returning endpoints (such as `get_service_nodes`):
  - properly format ETH addresses
  - fix "ethereum_beneficiary" -> "beneficiary" in contributors
  - drop irrelevant/meaningless "reserved" from contributors
  - remove externally meaningless "version" fields
  - provide a swarm value readable everywhere, because larger integer
    swarm ids are not parsable by many json engines.
  - Correct inconsistent "bls_public_key", which should be "pubkey_bls"
  - Don't include "total_reserved" and "reserved" fields.
  - Add missing operator_fee
  - Add missing "last_decomm_reasons" containing interpreted decomm
    information rather than only raw bitfield values.

- `bls_exit_liquidation_list`: allow a "fields" input that works like
  the (oxen 11) get_service_nodes "fields" array to be able to only
  fetch selective data.

- SN info serialization common code: don't include useless empty
  "locked_contributions" list for eth contributions.
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.

1 participant