-
Notifications
You must be signed in to change notification settings - Fork 39
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
Optimize wtxid mining #1329
Optimize wtxid mining #1329
Conversation
3d79d92
to
daeb84a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
|
@kpp is this still WIP? i can also see " fix "Too many iterations finding nonce" unchecked. |
@rakanalh just fixed 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!
crates/bitcoin-da/src/helpers/builders/batch_proof_namespace.rs
Outdated
Show resolved
Hide resolved
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.
share bench pls
nightly:
This branch:
|
With 200kb data the perf is: nightly:
this branch:
|
REVEAL_OUTPUT_THRESHOLD is in Sats. 0 Sats: Took: 56.506059914s, nonce = 88080 500 Sats: Took: 6.563243612s, nonce = 117 2000 Sats: Took: 2.659433892s, nonce = 27 10000 Sats: Took: 4.041161093s, nonce = 19 50000 Sats: Took: 5.9548212s, nonce = 16 |
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.
resolve conflict and merge pls
What’s the rationale for not keeping the utxos chained as before ? |
Description
Optimize wtxid mining not only with changing nonce, but also with changin commit/reveal outputs.
Linked Issues
TODO:
Testing
We should run-run-run and check whether it affects wtxid mining.
Note
I tested it 5 times locally on a --release build. Avg time to find a nonce is 2sec for a Proof tx.