forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: Merge bitcoin/bitcoin#29458, (partial) 29236, 29459, 29479, 29615, 29433 #7292
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
Open
vijaydasmp
wants to merge
6
commits into
dashpay:develop
Choose a base branch
from
vijaydasmp:May_2026_02
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5f9de6c
Merge bitcoin/bitcoin#29458: refactor: Preallocate result in TryParse…
achow101 a6754ec
(partial) Merge bitcoin/bitcoin#29236: log: Nuke error(...)
fanquake 5dcbb04
Merge bitcoin/bitcoin#29459: test: check_mempool_result negative feerate
glozow b04714c
Merge bitcoin/bitcoin#29479: test: Refactor subtree exclusion in lint…
fanquake d11c364
Merge bitcoin/bitcoin#29615: test: fix accurate multisig sigop count …
achow101 93e497e
Merge bitcoin/bitcoin#29433: contrib: rpcauth.py - Add new option (-j…
achow101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| // Copyright (c) 2024- The Bitcoin Core developers | ||
| // Distributed under the MIT software license, see the accompanying | ||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
|
||
| #include <bench/bench.h> | ||
| #include <random.h> | ||
| #include <stddef.h> | ||
| #include <util/strencodings.h> | ||
| #include <cassert> | ||
| #include <optional> | ||
| #include <vector> | ||
|
|
||
| std::string generateHexString(size_t length) { | ||
| const auto hex_digits = "0123456789ABCDEF"; | ||
| FastRandomContext rng(/*fDeterministic=*/true); | ||
|
|
||
| std::string data; | ||
| while (data.size() < length) { | ||
| auto digit = hex_digits[rng.randbits(4)]; | ||
| data.push_back(digit); | ||
| } | ||
| return data; | ||
| } | ||
|
|
||
| static void HexParse(benchmark::Bench& bench) | ||
| { | ||
| auto data = generateHexString(130); // Generates 678B0EDA0A1FD30904D5A65E3568DB82DB2D918B0AD8DEA18A63FECCB877D07CAD1495C7157584D877420EF38B8DA473A6348B4F51811AC13C786B962BEE5668F9 by default | ||
|
|
||
| bench.batch(data.size()).unit("base16").run([&] { | ||
| auto result = TryParseHex(data); | ||
| assert(result != std::nullopt); // make sure we're measuring the successful case | ||
| ankerl::nanobench::doNotOptimizeAway(result); | ||
| }); | ||
| } | ||
|
|
||
| BENCHMARK(HexParse, benchmark::PriorityLevel::HIGH); |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
29236: mark as partial, because instances of
errorstill exist and definition is not removed from logging.h