-
Notifications
You must be signed in to change notification settings - Fork 155
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
Implement DAA score timestamp estimation #268
Merged
michaelsutton
merged 13 commits into
kaspanet:master
from
coderofstuff:coderofstuff/add-daa-estimate
Nov 23, 2023
Merged
Implement DAA score timestamp estimation #268
michaelsutton
merged 13 commits into
kaspanet:master
from
coderofstuff:coderofstuff/add-daa-estimate
Nov 23, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
4 times, most recently
from
September 2, 2023 03:37
6a82ec4
to
874ffff
Compare
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
2 times, most recently
from
October 6, 2023 03:55
579926e
to
ac040cc
Compare
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
2 times, most recently
from
October 9, 2023 23:23
89a91b6
to
72ff4c7
Compare
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
2 times, most recently
from
October 29, 2023 02:54
83154e2
to
0f2fdb4
Compare
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
3 times, most recently
from
November 9, 2023 07:19
14348f7
to
c50cc42
Compare
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
3 times, most recently
from
November 21, 2023 17:10
4dc28b1
to
59ad2eb
Compare
Basic implementation, just return the value back. Commit is focused on adding the API rather than functionality.
Input = array of daa_scores Output = array of timestamps, index matched with input
- acquire prune lock - use tighter indexing logic - ensure sink is included
- avoid assuming that timestamps are strictly monotonic
coderofstuff
force-pushed
the
coderofstuff/add-daa-estimate
branch
from
November 23, 2023 19:03
3c9b355
to
dcdf65d
Compare
michaelsutton
previously approved these changes
Nov 23, 2023
michaelsutton
dismissed
their stale review
November 23, 2023 19:19
still missing one detail -- will add shortly
It's the same daa_score as checkpoint genesis, but timestamp is different to improve accuracy for queries right before and right after this daa_score
michaelsutton
approved these changes
Nov 23, 2023
smartgoo
pushed a commit
to smartgoo/rusty-kaspa
that referenced
this pull request
Jun 18, 2024
* Add GetDaaEstimateTimestamp RPC API Basic implementation, just return the value back. Commit is focused on adding the API rather than functionality. * Implement DAA score timestamp estimation Input = array of daa_scores Output = array of timestamps, index matched with input * Use info for daa TS estimate as opposed to println * Factor in BPS in the last header estimation * - use compact headers - acquire prune lock - use tighter indexing logic - ensure sink is included * eof new line * add todos * - bug fix: use f64, otherwise the fraction is always zero - avoid assuming that timestamps are strictly monotonic * renames * translate score -> miliisecs directly using target time per block * note * Add last data point from jupyter notebook It's the same daa_score as checkpoint genesis, but timestamp is different to improve accuracy for queries right before and right after this daa_score * use an array to avoid prealloc inaccuracies --------- Co-authored-by: Michael Sutton <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Input = array of
daa_scores
Output = array of
timestamps
, where each index in output matches the index of DAA score in inputTimestamp estimation logic:
Starts with the pruning point headers as the base, then attempts to include additional headers from recent chain blocks to provide better timestamp estimates for recent days after the last pruning point.
Fixes #257