0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-23 12:33:26 -05:00
bitcoin-bitcoin-core/src/index
Ryan Ofsky 5ca28ef28b refactor: Split up NodeContext shutdown_signal and shutdown_request
Instead of having a single NodeContext::shutdown member that is used both to
request shutdowns and check if they have been requested, use separate members
for each. Benefits of this change:

1. Should make code a little clearer and easier to search because it is easier
   to see which parts of code are triggering shutdowns and which parts are just
   checking to see if they were triggered.

2. Makes it possible for init.cpp to specify additional code to run when a
   shutdown is requested, like signalling the m_tip_block_cv condition variable.

Motivation for this change was to remove hacky NodeContext argument and
m_tip_block_cv access from the StopRPC function, so StopRPC can just be
concerned with RPC functionality, not other node functionality.
2024-10-01 09:10:54 +02:00
..
base.cpp refactor: Split up NodeContext shutdown_signal and shutdown_request 2024-10-01 09:10:54 +02:00
base.h refactor: rename BlockKey to BlockRef 2024-09-17 09:14:15 +02:00
blockfilterindex.cpp refactor: rename BlockKey to BlockRef 2024-09-17 09:14:15 +02:00
blockfilterindex.h refactor: rename BlockKey to BlockRef 2024-09-17 09:14:15 +02:00
coinstatsindex.cpp refactor: rename BlockKey to BlockRef 2024-09-17 09:14:15 +02:00
coinstatsindex.h refactor: rename BlockKey to BlockRef 2024-09-17 09:14:15 +02:00
disktxpos.h tidy: modernize-use-equals-default 2024-07-08 11:12:01 +02:00
txindex.cpp streams: cache file position within AutoFile 2024-09-13 07:35:41 -04:00
txindex.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00