-
Notifications
You must be signed in to change notification settings - Fork 29
feat(core): implement getBlockHeight
RPC method
#132
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
crates/core/src/rpc/minimal.rs
Outdated
} | ||
|
||
#[test] | ||
fn test_get_block_height_debug_slots() { |
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.
This test has no assertions, and I'm not sure from the name what the purpose of the test is
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 think that was my personal test that I didnt remove
crates/core/src/rpc/minimal.rs
Outdated
} | ||
|
||
#[test] | ||
fn test_get_block_height_with_valid_min_context_slot() { |
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.
Good test! Can we also get one for the failure case - asserting the RPC returns an error if the min_context_slot is beyond the current slot?
@MicaiahReid refactored blocks, take a look |
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.
Looking great! Two minor changes then we're ready to merge!
@MicaiahReid this should do 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.
Great work!!
aggh, sorry, looks like CI isn't passing cause of some formatting. Should be an easy fix! Run |
@MicaiahReid done |
Hey @Ozodimgba there are still more issues that need to be fixed from |
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!!
getBlockHeight
RPC method
No description provided.