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

pallet-beefy-mmr: better logging on BEEFY key to ETH address conversion #1520

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

acatangiu
Copy link
Contributor

@acatangiu acatangiu commented Sep 12, 2023

Description

Each time the validator set changes, BEEFY validator keys are converted to ETH addresses and merkelised into a keyset_commitment to be used by light clients.

This commit downgrades error to debug when individual conversions from BEEFY keys to ETH addresses fail, and adds cumulative check that reports total number of failed conversions, if any, on error log-level.

Fixes #1305

Signed-off-by: Adrian Catangiu <adrian@parity.io>
@acatangiu acatangiu added the T2-pallets This PR/Issue is related to a particular pallet. label Sep 12, 2023
@acatangiu acatangiu self-assigned this Sep 12, 2023
@acatangiu acatangiu requested a review from a team September 12, 2023 16:22
@bkchr bkchr merged commit 35de1f2 into paritytech:master Sep 13, 2023
115 of 117 checks passed
@acatangiu acatangiu deleted the beefy-eth-conversion branch September 13, 2023 08:47
@Polkadot-Forum
Copy link

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/polkadot-kusama-bridge/2971/5

bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
…on (paritytech#1520)

# Description

Each time the validator set changes, BEEFY validator keys are converted
to ETH addresses and merkelised into a `keyset_commitment` to be used by
light clients.

This commit downgrades `error` to `debug` when individual conversions
from BEEFY keys to ETH addresses fail, and adds cumulative check that
reports total number of failed conversions, if any, on `error`
log-level.

Fixes paritytech#1305

Signed-off-by: Adrian Catangiu <adrian@parity.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to convert BEEFY PublicKey to ETH address (westend & kusama)
5 participants