Skip to content

Conversation

@vijaydasmp
Copy link

@vijaydasmp vijaydasmp commented Sep 5, 2024

This backport includes the following changes:

  • Refactor: Prevent the wallet code from writing to the node settings file. This change supports running the wallet and node in separate processes, as multiprocess code would struggle with different processes updating the same file.

  • Update banlist.json handling: Instead of dropping all entries when at least one invalid entry is found in banlist.json, the code now only removes the invalid entries.

  • Update nanobench: This update incorporates the latest release from upstream, version 4.3.6, which resolves the issue of missing performance counters.

@vijaydasmp vijaydasmp changed the title backport: backport: Merge bitcoin-core/gui#381, bitcoin#22217 Sep 5, 2024
@vijaydasmp vijaydasmp changed the title backport: Merge bitcoin-core/gui#381, bitcoin#22217 backport : Merge bitcoin-core/gui#381, bitcoin#22217 Sep 5, 2024
@vijaydasmp vijaydasmp changed the title backport : Merge bitcoin-core/gui#381, bitcoin#22217 backport : Merge bitcoin#22217 Sep 6, 2024
@vijaydasmp vijaydasmp changed the title backport : Merge bitcoin#22217 backport : Merge bitcoin#22217, 22817, 23025 Sep 6, 2024
@vijaydasmp vijaydasmp changed the title backport : Merge bitcoin#22217, 22817, 23025 backport: Merge bitcoin#22217, 22817, 23025 Sep 10, 2024
@vijaydasmp vijaydasmp changed the title backport: Merge bitcoin#22217, 22817, 23025 backport: Merge bitcoin#22217, 22817, 23025, 22362 Sep 10, 2024
@vijaydasmp vijaydasmp marked this pull request as ready for review September 11, 2024 01:43
@vijaydasmp
Copy link
Author

Hello @UdjinM6 @knst requesting review

@vijaydasmp vijaydasmp changed the title backport: Merge bitcoin#22217, 22817, 23025, 22362 backport: Merge bitcoin#22217, 23025, 22362 Sep 11, 2024
UdjinM6
UdjinM6 previously approved these changes Sep 12, 2024
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 2fdfe6f

@vijaydasmp
Copy link
Author

Hello @PastaPastaPasta requesting review

2 similar comments
@vijaydasmp
Copy link
Author

Hello @PastaPastaPasta requesting review

@vijaydasmp
Copy link
Author

Hello @PastaPastaPasta requesting review

@UdjinM6 UdjinM6 added this to the 21.2 milestone Sep 22, 2024
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.

check comments for 23025

22217, 22362 is OK

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.

check comments for 23025

22217, 22362 is OK

meshcollider and others added 3 commits September 25, 2024 10:18
…s file

49ee2a0 Avoid wallet code writing node settings file (Russell Yanofsky)

Pull request description:

  Change wallet loading code to access settings through the Chain interface instead of writing settings.json directly. This is for running wallet and node in separate processes, since multiprocess code wouldn't easily work with different processes updating the same file.

  ---

  This PR is part of the [process separation project](https://github.com/bitcoin/bitcoin/projects/10). The commit was first part of larger PR bitcoin#10102.

ACKs for top commit:
  jamesob:
    ACK 49ee2a0 ([`jamesob/ackr/22217.1.ryanofsky.refactor_avoid_wallet_co`](https://github.com/jamesob/bitcoin/tree/ackr/22217.1.ryanofsky.refactor_avoid_wallet_co))
  ryanofsky:
    > ACK [49ee2a0](bitcoin@49ee2a0) ([`jamesob/ackr/22217.1.ryanofsky.refactor_avoid_wallet_co`](https://github.com/jamesob/bitcoin/tree/ackr/22217.1.ryanofsky.refactor_avoid_wallet_co))
  Zero-1729:
    crACK 49ee2a0
  meshcollider:
    Code review ACK 49ee2a0

Tree-SHA512: a81c63b87816f739e02e3992808f314294d6c7213babaafdaaf3c4650ebc97ee4f98f9a4684ce4ff87372df59989b8ad5929159c5686293a7cce04e97e2fabba
e148a52 bench: fixed ubsan implicit conversion (Martin Ankerl)
da4e2f1 bench: various args improvements (Jon Atack)
d312fd9 bench: clean up includes (Jon Atack)
1f10f16 bench: add usage description and documentation (Martin Ankerl)
d3c6f8b bench: introduce -min_time argument (Martin Ankerl)
9fef832 bench: make EvictionProtection.* work with any number of iterations (Martin Ankerl)
153e686 bench: change AddrManGood to AddrManAddThenGood (Martin Ankerl)
468b232 bench: remove unnecessary & incorrect  multiplication in MuHashDiv (Martin Ankerl)
eed99cf bench: update nanobench from 4.3.4 to 4.3.6 (Martin Ankerl)

Pull request description:

  This PR updates the nanobench with the latest release from upstream, v4.3.6. It fixes the missing performance counters.

  Due to discussions on bitcoin#22999 I have done some work that should make the benchmark results more reliable. It introduces a new flag `-min_time` that allows to run a benchmark for much longer then the default. When results are unreliable, choosing a large timeframe here should usually get repeatable results even when frequency scaling cannot be disabled. The default is now 10ms. For this to work I have changed the `AddrManGood` and `EvictionProtection` benchmarks so they work with any number of iterations.

  Also, this adds more usage documentation to `bench_bitcoin -h` and I've cherry-picked two changes from bitcoin#22999 authored by Jon Atack

ACKs for top commit:
  jonatack:
    re-ACK e148a52
  laanwj:
    Code review ACK e148a52

Tree-SHA512: 2da6de19a5c85ac234b190025e195c727546166dbb75e3f9267e667a73677ba1e29b7765877418a42b1407b65df901e0130763936525e6f1450f18f08837c40c
faa6c3d net: Drop only invalid entries when reading banlist.json (MarcoFalke)

Pull request description:

  All entries will be dropped when there is at least one invalid one in `banlist.json`. Fix this by only dropping invalid ones.

  Also suggested in bitcoin#20966 (comment)

ACKs for top commit:
  laanwj:
    Re-ACK faa6c3d

Tree-SHA512: 5a58e7f1dcabf78d0c65d8c6d5d997063af1efeaa50ca7730fc00056fda7e0061b6f7a38907ea045fe667c9f61d392e01e556b425a95e6b126e3c41cd33deb83
@vijaydasmp vijaydasmp requested a review from knst September 25, 2024 04:49
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 bd67f80

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 bd67f80

@knst knst merged commit c200175 into dashpay:develop Sep 26, 2024
34 checks passed
@UdjinM6 UdjinM6 modified the milestones: 21.2, 22 Oct 29, 2024
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.

5 participants