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

Remove confirm_registered extrinsic #1025

Merged
merged 16 commits into from
Aug 23, 2024
Merged

Conversation

HCastano
Copy link
Collaborator

This is another extrinsic which we don't need anymore as a part of the new registration
flow.

@HCastano HCastano requested review from ameba23 and JesseAbram August 22, 2024 19:36
@HCastano HCastano added Bump `spec_version` A change which affects the current runtime behaviour Bump `transaction_version` A change which affects how existing extrinsics are created (e.g parameter changes) and removed Bump `spec_version` A change which affects the current runtime behaviour labels Aug 22, 2024
@@ -681,6 +679,7 @@ async fn test_program_with_config() {
clean_tests();
}

#[ignore]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test fails because it depends on confirm_register working. I've ignored it for now because I want to use it as a reference when I start migrating the tests to use the new registration flow

Copy link
Contributor

Choose a reason for hiding this comment

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

omg i can't wait to see this test get deleted it has been a pita

do we not already have tests which use the new registration flow?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do have them, but I want to go through the old tests to see if there are any failure conditions that I haven't checked in the new tests.

Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

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

👍

/// Confirms that a address has finished registering on chain.
pub async fn confirm_registered(
/// Confirms that the network wide distributed key generation process has taken place.
pub async fn confirm_jump_start(
api: &OnlineClient<EntropyConfig>,
rpc: &LegacyRpcMethods<EntropyConfig>,
who: SubxtAccountId32,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if we still need this argument, or the check below since this should only ever be called with the network parent key but no harm in leaving it in.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I think this can get cleaned up, but it'll be more clear how when I rip out the old registration flow

@@ -681,6 +679,7 @@ async fn test_program_with_config() {
clean_tests();
}

#[ignore]
Copy link
Contributor

Choose a reason for hiding this comment

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

omg i can't wait to see this test get deleted it has been a pita

do we not already have tests which use the new registration flow?


#[test]
fn it_provides_free_txs_confirm_done() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Im guessing since we changed how we do 'free' transactions we don't need the equivalent of these tests for confirming jump start completed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We're not doing free transactions for the jump start confirmation. If we do go down that route we may want to bring these back, but no point in keeping them around right now

@HCastano HCastano merged commit eddd747 into master Aug 23, 2024
8 checks passed
@HCastano HCastano deleted the hc/remove-confirm-registered branch August 23, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bump `transaction_version` A change which affects how existing extrinsics are created (e.g parameter changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants