mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
Merge #15288: Remove wallet -> node global function calls
f7efd87c8fChange brace formatting (Russell Yanofsky)a1df1b48a8Remove use of IsInitialBlockDownload in wallet code (Russell Yanofsky)1106a6fde4Remove use of uiInterface.LoadWallet in wallet code (Russell Yanofsky)318f41fb2ccircular-dependencies: Avoid treating some .h/.cpp files as a unit (Russell Yanofsky)d02b34c8a8Remove use of AcceptToMemoryPool in wallet code (Russell Yanofsky)e2c8ba9f6eRemove uses of InitMessage/Warning/Error in wallet code (Russell Yanofsky)c5e59a96a8Remove uses of GetAdjustedTime in wallet code (Russell Yanofsky)6d6bcc77c0Remove use of g_connman / PushInventory in wallet code (Russell Yanofsky)00dfb2a440Remove uses of g_connman in wallet code (Russell Yanofsky)cc3836e8f9Remove uses of fPruneMode in wallet code (Russell Yanofsky)cc02c796d3Remove uses of fee globals in wallet code (Russell Yanofsky)1fb0a4a04eRemove use of CalculateMemPoolAncestors in wallet code (Russell Yanofsky)cd32160af0Remove use of GetTransactionAncestry in wallet code (Russell Yanofsky)291276f7f4Remove use of GetCountWithDescendants in wallet code (Russell Yanofsky)bdc6628683Remove use of IsRBFOptIn in wallet code (Russell Yanofsky)80f52a2267Remove uses of CheckFinalTx in wallet code (Russell Yanofsky) Pull request description: This change removes wallet calls to node functions that access global chain and mempool state. This is the next step in the larger #10973 refactoring change, which removes all other accesses to node global variables from wallet code. Doing this is useful to provide a better defined interface between the wallet and node, and necessary to allow wallet and node code to run in separate processes in #10102. Tree-SHA512: 40dbaf1f59fb22b32e70b054b30ba5638d638aa3240fa30e0f721d53c721cd6138a7ab4d423a24d7d2fda0b956e68d44c733abc2c9259c3d6c9fd6d4be89aa23
This commit is contained in:
@@ -8,9 +8,18 @@ MAPPING = {
|
||||
'core_write.cpp': 'core_io.cpp',
|
||||
}
|
||||
|
||||
# Directories with header-based modules, where the assumption that .cpp files
|
||||
# define functions and variables declared in corresponding .h files is
|
||||
# incorrect.
|
||||
HEADER_MODULE_PATHS = [
|
||||
'interfaces/'
|
||||
]
|
||||
|
||||
def module_name(path):
|
||||
if path in MAPPING:
|
||||
path = MAPPING[path]
|
||||
if any(path.startswith(dirpath) for dirpath in HEADER_MODULE_PATHS):
|
||||
return path
|
||||
if path.endswith(".h"):
|
||||
return path[:-2]
|
||||
if path.endswith(".c"):
|
||||
|
||||
Reference in New Issue
Block a user