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: refactored getting the authors to verify current node's author #398

Merged

Conversation

ivan-cholakov
Copy link
Contributor

instead of getting the author for current node, as it requires externalities, we are exposing the validators storage item to iterate through to find the correct keystore public key

node/avn-service/src/ethereum_events_handler.rs Outdated Show resolved Hide resolved
node/avn-service/src/ethereum_events_handler.rs Outdated Show resolved Hide resolved
node/avn-service/src/ethereum_events_handler.rs Outdated Show resolved Hide resolved
runtime/avn/src/lib.rs Outdated Show resolved Hide resolved
runtime/avn/src/lib.rs Outdated Show resolved Hide resolved
runtime/test/src/lib.rs Outdated Show resolved Hide resolved
runtime/test/src/lib.rs Outdated Show resolved Hide resolved
Base automatically changed from thadouk-integrate-initial-range-to-client to feat/SYS-3560-add-event-listener May 14, 2024 07:06
@ivan-cholakov ivan-cholakov force-pushed the NO_JIRA-fix-querying-validators branch from 5af2a84 to 4aa20b1 Compare May 14, 2024 07:45
@ivan-cholakov ivan-cholakov merged commit 74c7e86 into feat/SYS-3560-add-event-listener May 14, 2024
@ivan-cholakov ivan-cholakov deleted the NO_JIRA-fix-querying-validators branch May 14, 2024 07:51
@@ -314,6 +314,21 @@ where
Err(AppError::GenericError("Failed to initialize web3 after multiple attempts.".to_string()))
}

fn find_author_account_id<T>(
author_public_keys: Result<Vec<[u8; 32]>,T>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we pass a result here? can we not pass the key and handle/unwrap the result when it is returned?

@@ -177,7 +187,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("avn-parachain"),
impl_name: create_runtime_str!("avn-parachain"),
authoring_version: 1,
spec_version: 64,
spec_version: 60,
Copy link
Contributor

Choose a reason for hiding this comment

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

why 60?

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