-
Notifications
You must be signed in to change notification settings - Fork 971
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
core: initialization and Repository #81
Conversation
a2c165d
to
c6ebf9d
Compare
This comment has been minimized.
This comment has been minimized.
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.
Can you also merge #71 and rebase this on master again?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…. On-disk and in-mem versions introduced
c6ebf9d
to
4919389
Compare
This comment has been minimized.
This comment has been minimized.
isn't the whole idea that celestia-node only communicates with core (includes accessing data) via the RPC interface (even if local)? |
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.
On first sight it seems this PR breaks somewhat with the design paradigm we have settled on (namely that the the node only knows about very few RPC endpoints and that is the only thing it needs from core). The motivation for that seems to be that the future node-specific data and config are written into the same "repo" as the core node's?
I understand why this might be desirable but that is really not important for devnet.
We have to be careful to focus on the DA-specific parts!
Which custom serialzation (toml is not custom)? Where is the rationale? |
Yeeeaaah, on a high level, but the deeper you go, the less it black-boxable 🤷🏻♂️ |
The motivations here are:
|
Not custom serialization, but custom serialization logic.
Next |
Let's still try to stick to that paradigm as much as possible. |
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.
couple nits, I'm okay with this but I hate the idea that we need to do this much work to get core to work embedded within node. It's not that much reward per amount of work that's gone into it so far. It's fine otherwise though. We aim to remove all this regardless after Devnet.
@renaynay, WDYM? |
According to offsite. We treat Tendermint as a black box for devnet. Later on, we will have to decouple it into more pieces, so this code is likely to stay preserving control over initialization. |
I mean, we will not run celestia-node and celestia-core processes together. This is a crutch for devnet. After devnet, all should be communicating via p2p layer (meaning celestia-node does not need to know / care about celestia-core ). |
Co-authored-by: rene <[email protected]>
Co-authored-by: rene <[email protected]>
Co-authored-by: rene <[email protected]>
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.
OK Thank you!
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.
👏🏼 LGMT
Context
The penultimate piece for #30. It introduces initialization flow for the embedded Core node along with repository to access Core' stored data. Basically, it implements some of the important functionality for future
init
command.Others
core.Config
(rationale is in the code)Refs
Depends on #71 and #74
Moves towards done #30