Skip to content

Conversation

@kwvg
Copy link
Collaborator

@kwvg kwvg commented Jan 17, 2023

Depends on #5169

@kwvg kwvg changed the title backport: merge bitcoin#19826, #19848, #14384, #19556, #20222, #20222, #18766, #14033, partial #18861 (deglobalize mempool and feeEstimator) backport: merge bitcoin#19826, #19848, #14384, #19556, #20228, #20222, #18766, #14033, partial #18861, #20187 (deglobalize mempool and feeEstimator) Jan 17, 2023
@kwvg kwvg marked this pull request as draft January 17, 2023 14:08
@github-actions
Copy link

This pull request has conflicts, please rebase.

@kwvg kwvg changed the title backport: merge bitcoin#19826, #19848, #14384, #19556, #20228, #20222, #18766, #14033, partial #18861, #20187 (deglobalize mempool and feeEstimator) backport: merge bitcoin#20222, #20228, #14033, partial #20187 (deglobalize addrman and feeEstimator) Jan 19, 2023
@github-actions
Copy link

github-actions bot commented Feb 6, 2023

This pull request has conflicts, please rebase.

@kwvg kwvg force-pushed the mempool_deglob branch 5 times, most recently from 4c0f19f to 9dde804 Compare February 16, 2023 18:50
@kwvg kwvg marked this pull request as ready for review February 17, 2023 06:24
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20222 - seems as there is a mixture of changes from 20222 and from 18766.
Better to do as spare commit. So far it looks for me as a merge/conflict mistake when 18766 and 20222 squashed together by mistakes.

20187 - seems as big missing chunk (should be marked partial then):

        if (!pfrom.IsInboundConn()) {
            // For non-inbound connections, we update the addrman to record
            // connection success so that addrman will have an up-to-date
            // notion of which peers are online and available.
            //
            // While we strive to not leak information about block-relay-only
            // connections via the addrman, not moving an address to the tried
            // table is also potentially detrimental because new-table entries
            // are subject to eviction in the event of addrman collisions.  We
            // mitigate the information-leak by never calling
            // CAddrMan::Connected() on block-relay-only peers; see
            // FinalizeNode().
            //
            // This moves an address from New to Tried table in Addrman,
            // resolves tried-table collisions, etc. 

I recommend to do bitcoin#19724 (and may be some others related) prior this backport 20187.
Merge bitcoin#19724: [net] Cleanup connection types- followups

bitcoin#20228 - partial because missing changes from rpc/net.cpp
That rpc would be introduced only in
Merge bitcoin#19658: [rpc] Allow RPC to fetch all addrman records and add records to addrman

Also after bitcoin#20828 would be much easier to backport src/test/fuzz/connman.cpp

I feel like these PR is ahead of time ATM

case 0:
random_address = ConsumeAddress(fuzzed_data_provider);
break;
case 1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: may be better to do bitcoin#20828 before for simplicity?
Merge bitcoin#20828: fuzz: Introduce CallOneOf helper to replace switch-case

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i remember backporting bitcoin#20828 and for some reason it caused more problems than it solved, forcing me to manually decrement the cases, which was annoying to work with.

@github-actions
Copy link

This pull request has conflicts, please rebase.

knst
knst previously approved these changes Feb 20, 2023
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a 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

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls see below

@kwvg kwvg dismissed stale reviews from PastaPastaPasta and knst via 30a4993 February 22, 2023 08:09
@kwvg kwvg changed the title backport: merge bitcoin#20222, #20228, #14033, partial #20187 (deglobalize addrman and feeEstimator) backport: merge bitcoin#20222, #18766, #14033, #19486, #19607, #20291, partial #20187, #20228 (deglobalize addrman and feeEstimator) Feb 22, 2023
UdjinM6
UdjinM6 previously approved these changes Feb 23, 2023
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

knst
knst previously approved these changes Feb 24, 2023
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a 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

@PastaPastaPasta PastaPastaPasta dismissed stale reviews from knst, UdjinM6, and themself via f0c4cc6 February 27, 2023 17:50
@UdjinM6 UdjinM6 added this to the 20 milestone Feb 27, 2023
@UdjinM6 UdjinM6 merged commit 7e57ae6 into dashpay:develop Feb 27, 2023
PastaPastaPasta added a commit that referenced this pull request Sep 23, 2025
…er pointers, check before `queueman` access, update P2P message map in tests

24f9357 fix: update P2P message map in functional test framework (Kittywhiskers Van Gogh)
a432a95 fix: check if `queueman` is initialized before accessing it (Kittywhiskers Van Gogh)
0444e59 trivial: use `std::atomic` to protect connected manager pointers (Kittywhiskers Van Gogh)
b7700b3 trivial: use `std::atomic` to protect connected signer pointers (Kittywhiskers Van Gogh)

Pull request description:

  ## Additional Information

  * Dependency for #6838

  This pull request contains the following:

  * Minor follow-up to [dash#6828](#6828) based on feedback received during review also extended to similar connections introduced in [dash#5980](#5980) ([commit](a5be37c#diff-c065d4cd2398ad0dbcef393c5dfc53f465bf44723348892395fffd2fb3bac522R350-R355)) and [dash#6030](#6030) ([commit](805537e#diff-59f8e9f1b35c1428332caab753a818e3b2146e73bb6c998a2aed5f7eddbc6fa1R357-R363))
  * A bugfix to avoid potential crash caused by missing `nullptr` check after `CCoinJoinClientQueueManager` was conditionally initialized in [dash#5163](#5163) ([commit](2d2814e#diff-b1e19192258d83199d8adaa5ac31f067af98f63554bfdd679bd8e8073815e69dR2308-R2310))
  * Updating the Python mapping of Dash-specific P2P messages to avoid unexpected test failures ([build](https://github.com/dashpay/dash/actions/runs/17707917238/job/50323243018#step:6:328)), observed when working on [dash#6838](#6838)

  ## Breaking Changes

  None expected.

  ## Checklist

  - [x] I have performed a self-review of my own code
  - [x] I have commented my code, particularly in hard-to-understand areas **(note: N/A)**
  - [x] I have added or updated relevant unit/integration/functional/e2e tests **(note: N/A)**
  - [x] I have made corresponding changes to the documentation
  - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  UdjinM6:
    utACK 24f9357

Tree-SHA512: 90b0b2536a7704e3f3da4ece05b6ad09c393a4348aaff87682b7547f6a7d6ffede504176fa1f63bd9ad88961fb1e3b113aae5df357c0dfb70df2fc55500c2b5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants