-
Notifications
You must be signed in to change notification settings - Fork 31
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
Kernel opening should be provable and confirmed on auxiliary #448
Conversation
Maybe add a follow-up ticket? |
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.
Very interesting 👍
I added some comments in-line. But someone who has more experience with the gateways definitely should review it. The most important part (KernelGateway
) I could not check very thoroughly.
…to kernel gateway
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.
Thanks Deepesh! I still have some questions. And we should also wait for Sarvesh's feedback next week.
Note: Please end all doc comments with a period .
.
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.
Overall approach looks correct to me. 👍 🚀
Some comments and feedback inline.
@deepesh-kn @schemar
We should re-think for circular dependency between contracts (Polling place -> Block store -> Kernel Gateway). Specifically for justify
method call from PollingPlace
to BlockStore
.
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.
I have only tiny things left. Looks really good 🚤💨
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.
There are still some small questions, please see in-line.
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.
🏎💨
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.
LGTM 🚀 🚁 🥇 🙌
Great work 😄
fixes: #407
fixes: #408
As there is lot of cyclic interdependencies of the contract. I tried to avoid KernelGateway to be increase it. So there was a small change in flow. Now AuxiliaryBlockStore communicates with PollingPlace instead of KernelGateway.
Incase you do not agree with the flow. Lets discuss I can make a quick change.
Here is the flow.
The points that differs here are from the store are
There are interdependencies of the contracts. It is not resolved in this PR. So once it is resolved then
function setKernelGateway(address _kernelGateway)
should be removed from AuxiliaryBlockStore.sol