-
Notifications
You must be signed in to change notification settings - Fork 280
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
node/http: add next interval #175
Conversation
Codecov Report
@@ Coverage Diff @@
## master #175 +/- ##
==========================================
- Coverage 52.99% 44.91% -8.08%
==========================================
Files 129 126 -3
Lines 35773 35080 -693
Branches 6032 5952 -80
==========================================
- Hits 18957 15757 -3200
- Misses 16816 19323 +2507
Continue to review full report at Codecov.
|
Good catch, this is actually super helpful for HNScan! |
I wasn't sure what would be more useful, |
No test for OBOE?? Also thoughts about adding this into get name resource? I ran into some issues locally where seeing when a record that I added to a name would update is not explicitly clear. I wonder if we should think about adding this into the "info" part of a name when we pull a name. |
8bf3606
to
8e6bf60
Compare
Added test coverage for an off by one error
We could definitely add this here, I think |
d6056d6
to
f1fb71a
Compare
@boymanjor Resolved issues, pushed up new code |
8386649
to
963130e
Compare
Add `chain.nextInterval` to the response of `GET /` on the node HTTP server. The value is the block height of the next time that the `treeRoot` is committed to disk along with being included in the block headers.
To prevent bugs on the client side, return both the number of blocks until the next tree committment and return the height of the next tree committment. Application builders may need either value and while it is possible to compute the other with one, its better to just return both.
963130e
to
d660fa0
Compare
@tynes I think this is a useful datum to return here, do you still wanna finish? I could take it over if you like. Thoughts:
|
Adds 2 new properties to Node
GET /
nextTreeRootHeight
- blockheight at which the tree will be committedblocksUntilNextTreeRoot
- number of blocks until the next time the tree is committedThis is useful for applications building on top of
hsd
that need to know the next time the tree will be committed. It also includes tests for off by one errors.