-
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
GD Optimizations #8
Commits on Jun 26, 2024
-
Refactor pruning proof validation to many functions
Co-authored-by: Ori Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5d3b10f - Browse repository at this point
Copy the full SHA 5d3b10fView commit details -
Use blue score as work for higher levels
Co-authored-by: Ori Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 40f1cc9 - Browse repository at this point
Copy the full SHA 40f1cc9View commit details -
Remove pruning processor dependency on gd managers
Co-authored-by: Ori Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4af6773 - Browse repository at this point
Copy the full SHA 4af6773View commit details -
Co-authored-by: Ori Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1df5a22 - Browse repository at this point
Copy the full SHA 1df5a22View commit details -
Co-authored-by: Ori Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d12592c - Browse repository at this point
Copy the full SHA d12592cView commit details -
Co-authored-by: Ori Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2bea765 - Browse repository at this point
Copy the full SHA 2bea765View commit details -
Configuration menu - View commit details
-
Copy full SHA for 902b217 - Browse repository at this point
Copy the full SHA 902b217View commit details -
Ensure parents are in relations; Add comments
apply_proof only inserts parent entries for a header from the proof into the relations store for a level if there was GD data in the old stores for that header. This adds a check to filter out parent records not in relations store
Configuration menu - View commit details
-
Copy full SHA for 7f1f412 - Browse repository at this point
Copy the full SHA 7f1f412View commit details -
Configuration menu - View commit details
-
Copy full SHA for f49478a - Browse repository at this point
Copy the full SHA f49478aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 879c135 - Browse repository at this point
Copy the full SHA 879c135View commit details -
Relax the panic to warn when finished_headers and couldn't find suffi…
…cient root This happens when there's not enough headers in the pruning proof but it satisfies validation
Configuration menu - View commit details
-
Copy full SHA for 56c0b40 - Browse repository at this point
Copy the full SHA 56c0b40View commit details -
Error handling for gd on higher levels
relations.get_parents on GD gets extra parents that aren't in the current GD store. so get_blue_work throws an error next, ORIGIN was mising from the GD so add that
Configuration menu - View commit details
-
Copy full SHA for 43e9f9e - Browse repository at this point
Copy the full SHA 43e9f9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34f20ab - Browse repository at this point
Copy the full SHA 34f20abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2654b25 - Browse repository at this point
Copy the full SHA 2654b25View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba04929 - Browse repository at this point
Copy the full SHA ba04929View commit details -
Configuration menu - View commit details
-
Copy full SHA for a45b571 - Browse repository at this point
Copy the full SHA a45b571View commit details -
Configuration menu - View commit details
-
Copy full SHA for edb5cd3 - Browse repository at this point
Copy the full SHA edb5cd3View commit details -
The new prefixes added are compatible with the old version. We don't want to trigger a db delete with this change
Configuration menu - View commit details
-
Copy full SHA for e81394f - Browse repository at this point
Copy the full SHA e81394fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e8c788 - Browse repository at this point
Copy the full SHA 0e8c788View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56f9dab - Browse repository at this point
Copy the full SHA 56f9dabView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5be8ad - Browse repository at this point
Copy the full SHA c5be8adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d15e27 - Browse repository at this point
Copy the full SHA 8d15e27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c6b585 - Browse repository at this point
Copy the full SHA 1c6b585View commit details -
Configuration menu - View commit details
-
Copy full SHA for 273aa81 - Browse repository at this point
Copy the full SHA 273aa81View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9b3fda - Browse repository at this point
Copy the full SHA f9b3fdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca8bb42 - Browse repository at this point
Copy the full SHA ca8bb42View commit details
Commits on Jun 27, 2024
-
Add small safety margin to proof at level 0
This prevents the case where new root is an anticone of old root
Configuration menu - View commit details
-
Copy full SHA for 61183fa - Browse repository at this point
Copy the full SHA 61183faView commit details
Commits on Jun 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 34bc88f - Browse repository at this point
Copy the full SHA 34bc88fView commit details -
Configuration menu - View commit details
-
Copy full SHA for da1cfe3 - Browse repository at this point
Copy the full SHA da1cfe3View commit details
Commits on Jul 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a23d1dd - Browse repository at this point
Copy the full SHA a23d1ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 974d200 - Browse repository at this point
Copy the full SHA 974d200View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ea8328 - Browse repository at this point
Copy the full SHA 6ea8328View commit details
Commits on Jul 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f8baf69 - Browse repository at this point
Copy the full SHA f8baf69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f6ad73 - Browse repository at this point
Copy the full SHA 4f6ad73View commit details -
- Keep using old root to minimize proof size. Old root is calculated using the temporary gd stores - fix the off-by-one in block_at_depth and chain_up_to_depth - revert the temp fix to sync with the off-by-one
Configuration menu - View commit details
-
Copy full SHA for bc56e65 - Browse repository at this point
Copy the full SHA bc56e65View commit details
Commits on Jul 14, 2024
-
This reverts commit bc56e65. This experimental commit requires a bit more thinking to apply, and optimization can be deferred.
Configuration menu - View commit details
-
Copy full SHA for efbb083 - Browse repository at this point
Copy the full SHA efbb083View commit details
Commits on Jul 16, 2024
-
Recreates the GD stores for the current consensus by checking existing proof
Configuration menu - View commit details
-
Copy full SHA for a585be7 - Browse repository at this point
Copy the full SHA a585be7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7625c7 - Browse repository at this point
Copy the full SHA e7625c7View commit details
Commits on Aug 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0741151 - Browse repository at this point
Copy the full SHA 0741151View commit details
Commits on Aug 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d48e049 - Browse repository at this point
Copy the full SHA d48e049View commit details
Commits on Aug 23, 2024
-
Add trusted blocks to all relevant levels during apply_proof
As opposed to applying only to level 0
Configuration menu - View commit details
-
Copy full SHA for 89f1701 - Browse repository at this point
Copy the full SHA 89f1701View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e249f9 - Browse repository at this point
Copy the full SHA 3e249f9View commit details
Commits on Aug 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fb3d1e9 - Browse repository at this point
Copy the full SHA fb3d1e9View commit details -
Explain finished headers logic
Add back the panic if we couldn't find the required block and our headers are done Add explanation in comment for why trying anyway if finished_headers is acceptable
Configuration menu - View commit details
-
Copy full SHA for c9855d3 - Browse repository at this point
Copy the full SHA c9855d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a63acdb - Browse repository at this point
Copy the full SHA a63acdbView commit details -
Rename old_root to depth_based_root
explain logic for the two root calculation
Configuration menu - View commit details
-
Copy full SHA for 46dbac3 - Browse repository at this point
Copy the full SHA 46dbac3View commit details
Commits on Aug 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bdf205e - Browse repository at this point
Copy the full SHA bdf205eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c9f997 - Browse repository at this point
Copy the full SHA 4c9f997View commit details -
Merge pull request #9 from someone235/gd-proof-ignore-root-past
When building pruning point proof ghostdag data, ignore blocks before root
Configuration menu - View commit details
-
Copy full SHA for 42a3030 - Browse repository at this point
Copy the full SHA 42a3030View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f2aace - Browse repository at this point
Copy the full SHA 4f2aaceView commit details
Commits on Aug 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bc2e648 - Browse repository at this point
Copy the full SHA bc2e648View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56b4392 - Browse repository at this point
Copy the full SHA 56b4392View commit details
Commits on Aug 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 66d4ebe - Browse repository at this point
Copy the full SHA 66d4ebeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18158e6 - Browse repository at this point
Copy the full SHA 18158e6View commit details
Commits on Sep 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8d042b2 - Browse repository at this point
Copy the full SHA 8d042b2View commit details
Commits on Sep 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 09f1443 - Browse repository at this point
Copy the full SHA 09f1443View commit details
Commits on Sep 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2913bda - Browse repository at this point
Copy the full SHA 2913bdaView commit details
Commits on Sep 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 095a9f3 - Browse repository at this point
Copy the full SHA 095a9f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65948d3 - Browse repository at this point
Copy the full SHA 65948d3View commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6021a1e - Browse repository at this point
Copy the full SHA 6021a1eView commit details
Commits on Sep 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 009f9a8 - Browse repository at this point
Copy the full SHA 009f9a8View commit details
Commits on Sep 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3bc2844 - Browse repository at this point
Copy the full SHA 3bc2844View commit details
Commits on Sep 30, 2024
-
Bump tonic and prost versions, adapt middlewares (kaspanet#553)
* bump tonic, prost versions update middlewares * use unbounded channel * change log level to trace * use bounded channel * reuse counts bytes body to measure bytes body * remove unneeded clone
Configuration menu - View commit details
-
Copy full SHA for 66959d4 - Browse repository at this point
Copy the full SHA 66959d4View commit details
Commits on Oct 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a60bd8c - Browse repository at this point
Copy the full SHA a60bd8cView commit details
Commits on Oct 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2b0f3ab - Browse repository at this point
Copy the full SHA 2b0f3abView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1d6904 - Browse repository at this point
Copy the full SHA f1d6904View commit details
Commits on Oct 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b37f030 - Browse repository at this point
Copy the full SHA b37f030View commit details
Commits on Oct 7, 2024
-
replace statrs and statest deps & upgrade some deps. (kaspanet#425)
* replace statrs and statest deps. * remove todo in toml.cargo and fmt & lints. * do a run of `cargo audit fix` for some miscellaneous reports. * use maintained alt ks crate. * add cargo.lock. * update * use new command * newline * refresh cargo lock with a few more version updates * fix minor readme glitches --------- Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1378e7b - Browse repository at this point
Copy the full SHA 1378e7bView commit details
Commits on Oct 8, 2024
-
enhance tx inputs processing (kaspanet#495)
* sighash reused trait * benches are implemented * use cache per iteration per function * fix par versions * fix benches * use upgreadable read * use concurrent cache * use hashcache * dont apply cache * rollback rwlock and indexmap. * remove scc * apply par iter to `check_scripts` * refactor check_scripts fn, fix tests * fix clippy * add bench with custom threadpool * style: fmt * suppress warnings * Merge branch 'master' into bcm-parallel-processing * renames + map err * reuse code * bench: avoid exposing cache map + iter pools in powers of 2 * simplify check_sig_op_counts * use thread pool also if a single input 1. to avoid confusion 2. since tokio blocking threads are not meant to be used for processing anyway * remove todo * clear cache instead of recreate * use and_then (so map_err can be called in a single location) * extend check scripts tests for better coverage of the par_iter case --------- Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1274e9c - Browse repository at this point
Copy the full SHA 1274e9cView commit details
Commits on Oct 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 362e564 - Browse repository at this point
Copy the full SHA 362e564View commit details -
Parallelize MuHash calculations (kaspanet#575)
* Parallelize MuHash calculations MuHash calculations are additive and can be done in chunks then later combined * Reimplement validate tx with muhash as a separate fn * Use smallvec for muhash parallel Co-authored-by: Michael Sutton <[email protected]> * Add independent rayon order test * Filter some data * Use tuple_windows for test iter --------- Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c59a0d1 - Browse repository at this point
Copy the full SHA c59a0d1View commit details
Commits on Oct 13, 2024
-
Muhash parallel reduce -- optimize U3072 mul when LHS = one (kaspanet…
…#581) * semantic: add `from` ext methods * muhash from txs benchmark * optimization: in u3072 mul test if lhs is one * extract `parallelism_in_power_steps` * comment
Configuration menu - View commit details
-
Copy full SHA for 0df2de5 - Browse repository at this point
Copy the full SHA 0df2de5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b7d659 - Browse repository at this point
Copy the full SHA 7b7d659View commit details
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2e8deab - Browse repository at this point
Copy the full SHA 2e8deabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4168456 - Browse repository at this point
Copy the full SHA 4168456View commit details
Commits on Oct 22, 2024
-
Rust 1.82 fixes + mempool std sig op count check (kaspanet#583)
* rust 1.82 fixes * sig op count std check
Configuration menu - View commit details
-
Copy full SHA for a40efbb - Browse repository at this point
Copy the full SHA a40efbbView commit details -
typo(cli/utils): kaspa wording (kaspanet#582)
Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aac16a9 - Browse repository at this point
Copy the full SHA aac16a9View commit details
Commits on Oct 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a11b135 - Browse repository at this point
Copy the full SHA a11b135View commit details -
Cleaner find_selected_parent_header_at_level
Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b6af1af - Browse repository at this point
Copy the full SHA b6af1afView commit details -
Configuration menu - View commit details
-
Copy full SHA for dcd3f5c - Browse repository at this point
Copy the full SHA dcd3f5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32f890d - Browse repository at this point
Copy the full SHA 32f890dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15486f8 - Browse repository at this point
Copy the full SHA 15486f8View commit details
Commits on Oct 28, 2024
-
Reduce loop depth increase on level proof retries
Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a41f26 - Browse repository at this point
Copy the full SHA 6a41f26View commit details -
Update consensus/src/processes/pruning_proof/mod.rs
Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cf476f2 - Browse repository at this point
Copy the full SHA cf476f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for be105f9 - Browse repository at this point
Copy the full SHA be105f9View commit details -
Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 59b1a05 - Browse repository at this point
Copy the full SHA 59b1a05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cd27f3 - Browse repository at this point
Copy the full SHA 5cd27f3View commit details -
Cleaner reachability_stores type
Co-authored-by: Michael Sutton <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8e03452 - Browse repository at this point
Copy the full SHA 8e03452View commit details
Commits on Oct 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 01024b1 - Browse repository at this point
Copy the full SHA 01024b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1777b80 - Browse repository at this point
Copy the full SHA 1777b80View commit details -
Configuration menu - View commit details
-
Copy full SHA for f83a70f - Browse repository at this point
Copy the full SHA f83a70fView commit details