-
Notifications
You must be signed in to change notification settings - Fork 105
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
refactor(core): Add nonce to program id generation #3010
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about changes in core-processor when create_program
is called? or upload_program
? There are lots of dependant changes like if you change program id generation, then you must change InitPacket
instantiation and all places where it's used.
Once already addressed comments solved, do not forget to replace no-op block with panic in journal handler's program creation on gear pallet |
Resolve finished conversations, fix CI and re-request reviews please @mqxf |
Will do closer to evening today. I am on multiple flights today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the next approach:
- program ids from pallet -
hash(concat(message_id, code_id, salt))
- program ids from wasm program -
hash(concat(message_id, code_id, salt, store.initialized.len()))
#3320 once host macro is removed |
Resolves #2821
@gear-tech/dev