8000 [Ceres] Make NamePreclaim optional by hanssv · Pull Request #4201 · aeternity/aeternity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Ceres] Make NamePreclaim optional #4201

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

Merged
merged 4 commits into from
Nov 6, 2023
Merged

[Ceres] Make NamePreclaim optional #4201

merged 4 commits into from
Nov 6, 2023

Conversation

hanssv
Copy link
Member
@hanssv hanssv commented Sep 4, 2023

Fixes #4174

Make NamePreclaimTx optional. Since the introduction of auctions, the front-running protection offered by the 'PreClaim -> Claim' flow is no longer as important. To simplify name registrations (or the start of a name auction) we now allow NameClaimTx without a previous NamePreclaimTx. In this case we set the NameSalt to 0.

This PR is supported by the Æternity Crypto Foundation

Copy link
Contributor
@uwiger uwiger left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +623 to +626
State = case proplists:get_value(state, Cfg) of
undefined -> aens_test_utils:new_state();
State0 -> State0
end,
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like this could be factored out into a helper function.

Copy link
Contributor
@zxq9 zxq9 left a comment

Choose a reason for hiding this comment

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

LGTM

@hanssv hanssv merged commit 9ce26c8 into master Nov 6, 2023
@hanssv hanssv deleted the remove_name_preclaim branch November 6, 2023 09:23
@dincho dincho added breaking/consensus Consensus breaking change kind/feature Issues or PRs related to a new feature and removed kind/feature Issues or PRs related to a new feature labels Nov 24, 2023
mitchelli pushed a commit that referenced this pull request Jan 22, 2024
* [Ceres] Add logic to allow skipping NamePreclaim

* Tests for preclaim-free nameclaim

* Added a release note

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking/consensus Consensus breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow mining NameClaimTx immediately
4 participants
0