Skip to content

Conversation

@ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Feb 17, 2023

Why this should be merged

How this works

How this was tested

How is this documented

if _, ok := PrecompileAllNativeAddresses[address]; ok {
panic(fmt.Errorf("precompile address collides with existing native address: %s", address))
}
if address == constants.BlackholeAddr {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hm I actually moved it to registerer but seems lost in stash. added now. good catch.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we keep it in both places?

Comment on lines +55 to +58
if address == constants.BlackholeAddr {
return fmt.Errorf("address %s overlaps with blackhole address", address)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@darioush
Copy link

Not against this PR, this is my alternative suggestion #520 happy to follow what others think here to move forward.

@aaronbuchwald
Copy link
Collaborator

Closing in favor of #520

@ceyonur ceyonur deleted the rename-configs branch February 22, 2023 14:16
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.

5 participants