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

laudiacay/actors review F24 #1323

Merged
merged 4 commits into from
Dec 10, 2021
Merged

Conversation

laudiacay
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • adding version-gated checks for BLS zero key actor creation, and lazy-static to generate that key once per run in memory

Reference issue to close (if applicable)

Closes #1301

Other information and links

half of this has been merged into FVM, other half of this we're waiting on because it'll need to go outside of actors in lotus-territory.

@laudiacay laudiacay requested a review from a user December 8, 2021 19:10
@@ -468,6 +468,10 @@ where
) -> Result<(ActorState, Address), ActorError> {
self.charge_gas(self.price_list().on_create_actor())?;

if addr.is_bls_zero_address() && self.network_version() >= NetworkVersion::V10 {
Err(actor_error!(SysErrIllegalArgument; "cannot create the bls zero address actor"))?
Copy link
Contributor

Choose a reason for hiding this comment

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

ErrIllegalArgument is used by Lotus so this is a problem. Is this ok in Lotus? I would say Lotus should fix and useSysErrIllegalArgument too no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Return directly the error without ? to make cargo clippy happy.

Copy link
Contributor

Choose a reason for hiding this comment

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

updated this!

@noot noot merged commit 47b3ad4 into ChainSafe:main Dec 10, 2021
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.

F24: Forest does not reject BLS identity address during account actor creation
3 participants