-
Notifications
You must be signed in to change notification settings - Fork 1.1k
service/share: Rename root to dah in JSON body of /namespaced_shares endpoint
#673
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
Conversation
adlerjohn
left a comment
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.
Why not use block hash? Or at least data root?
|
Eventually we need a For now, we need the entire DAH to perform the request. |
adlerjohn
left a comment
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.
suspicious lint failure
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.
IDK TBH about this being more intuitive:
- 'dah' on its own doesn't mean anything for the outsider and is far less intuitive then the word that has a meaning(root)
- even if you change 'dah' to
data_availabiltiy_header, it doesn't really add anything here for a user. A header can mean anything and does not give any insights into the content of the header. It says 'data availability' but do users have to care about it if they assume Celestia provides it for them automatically? - 'root' is more intuitive for people familiar with merklized data structures
'data_root' should be the most intuitive yet succint.
|
I'm definitely biased, because I used term data availability header a lot, but for me
|
|
On the other hand,
For consistency, it would be great to use same name everywhere. |
|
I'm not so sure what the best name would be but we use "data availability header" throughout the codebase a lot. I think it would be a bit confusing if we call the DAH root as it is not a single root but many row and column roots. This also applies to this alias btw: celestia-node/service/share/share.go Lines 35 to 37 in 38a6a96
|
|
what happened to "data root"? |
|
It was called root because
|
|
LGTM on name change to |
It still there. Here: https://github.com/celestiaorg/celestia-core/blob/7e29d6560b7e2c96c60c2c5b2ae5d9e371e382d8/types/block.go#L361 But that is the DAH merkelized (i.e. a simple binary merkle tree with all roots in the dah as leaves). |
|
Closing in favour of #693 |
Description
This PR renames the field in the JSON request for
/namespaced_sharesfromroottodahasrootis a variable name we use inside celestia-node that not many people know about whereasDAHis more intuitive.Docs
GET
/namespaced_sharesRequest
Response