-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added Avail DA to Rollkit #2
Conversation
Hi @aterentic-ethernal |
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.
Some things are much better 👍 I left a few comments, but Ill done another pass once issue with dependencies is resolved, since I cannot buld project atm.
And one more question, why are there so many unrelated commits in PR?
I pulled the code from upstream main that might be the reason |
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.
left some comments, also fix lint issues.
// CheckBlockAvailability queries DA layer to check data availability of block. | ||
func (c *DataAvailabilityLayerClient) CheckBlockAvailability(ctx context.Context, dataLayerHeight uint64) da.ResultCheckBlock { | ||
|
||
blockNumber := dataLayerHeight |
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 new variable?
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.
@akhilkumarpilli ,datalayerheight
and blocknumber
are two different fields but currently we are considering datalayerheight
as blocknumber
that's why I have taken a new variable.If there is no necessity of new variable,I'll remove it. Please suggest
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.
For now, you can remove it.
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.
okay akhil
genesisHash, err := api.RPC.Chain.GetBlockHash(0) | ||
if err != nil { | ||
return err | ||
} |
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 if genesis height is different? Will it always be zero?
No description provided.