-
Notifications
You must be signed in to change notification settings - Fork 1.2k
merge bitcoin#13258, #14951 #4499
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
merge bitcoin#13258, #14951 #4499
Conversation
src/addrman.cpp
Outdated
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.
likely shouldn't drop asmap here
src/uint256.h
Outdated
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.
13258 please investigate why we don't have the line in addrman_tests.cpp that upstream changed
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.
int RandomInt(int nMax) method is not present in the current branch, that's why this change is not cherry-picked, checking for another commit that has this change to backport
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.
Merge bitcoin#14624: Some simple improvements to the RNG code (this change had removed RandomInt method, marked as partial in the sheet), and it is already merged,
15b13da to
04d678a
Compare
|
This pull request has conflicts, please rebase. |
04d678a to
6a86c95
Compare
0b23d50 to
9749c8d
Compare
|
feature_dip3_deterministicmns test is failing |
468d53e to
585f0c4
Compare
UdjinM6
left a comment
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.
pls see 56ce214b0e7b589777a9d6fab9753557c95f4601 and c9d7367ab57b32c3e9dfdc0cb154c984ca601420.
585f0c4 to
1be1049
Compare
…ndency bf2e010 uint256: Remove unnecessary crypto/common.h use (Karl-Johan Alm) Pull request description: This is an alternative to bitcoin#13242 which keeps the `ReadLE64` part, but moves the `crypto/common.h` dependency into `crypto/common.h` as a function outside of `uint256`. **Reason:** this change will remove dependencies for `uint256` to `crypto/common.h`, `compat/endian.h`, and `compat/byteswap.h`. This PR removes the need to update tests to be endian-aware/-independent, but keeps the (arguably dubious) `ReadLE64` part (which was only introduced to fix the tests, not for any functionality). Tree-SHA512: 78b35123cdb185b3b3ec59aba5ca8a5db72624d147f2d6a5484ffa5ce626a72f782a01dc6893fc8f5619b03e2eae7b5a03b0df5d43460f3bda428e719e188aec
…an once" fa4b8c9 test: add_nodes can only be called once after set_test_params (MarcoFalke) faa8311 Revert "tests: Support calling add_nodes more than once" (MarcoFalke) Pull request description: Writing tests should be straightforward and with little side-effects as possible. I don't see how this is needed and can not be achieved with `self.num_nodes` (and `self.extra_args` et al.) Tree-SHA512: 83a67f2cba9d97e21d80847ff405a4633fcb0d5674486efa57ee1813e46efe8709ae0fb462b8339a01ebeca5c4f2d29ecb1807d648b8fd9ee8ce336b08d580a8
1be1049 to
b5bc278
Compare
|
Somebody please retrigger the test, feature_config_args this test is flaky |
|
now feature_llmq_dkgerrors.py is failing :O |
Thanks @UdjinM6 |
UdjinM6
left a comment
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.
utACK
| private: | ||
| CCriticalSection cs; | ||
| unordered_limitedmap<uint256, bool> mapHasTxIndexCache; | ||
|
|
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.
how are these changes related to 13258
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.
Removing <crypto/common.h> from src/uint256.h requires dropping uint256::GetCheapHash() which requires dropping std::hash() for uint256.
Dash-specific changes (which were took from my patch):
- implement similar hash functions when
uint256represents block hashes. - use
StaticSaltedHasherin other cases, see b5462f5 commit message for "why?". NOTE: this does in fact change the behaviour for those unordered maps/sets that were switched toStaticSaltedHasherbut in a good way imo. - drop unused parts instead of fixing them (
mapHasTxIndexCacheis unused andcswhich was guarding it in the old code is unused too now).
|
14951 is good, just a little confused with 13258 |
PastaPastaPasta
left a comment
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.
utACK for merging via merge commit
No description provided.