diff options
author | Carl Dong <contact@carldong.me> | 2022-07-07 16:32:52 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-15 11:35:13 -0400 |
commit | 813962da0b17b918941c6849996845e35d84a451 (patch) | |
tree | 0aeefc022c8f8b819604f1241bf15fdd1990c628 /src/txmempool.h | |
parent | 413f4bb52b72e082ad8716664ede48352b8e7e5a (diff) | |
download | bitcoin-813962da0b17b918941c6849996845e35d84a451.tar.xz |
scripted-diff: Rename m_is_loaded -> m_load_tried
m_is_loaded/IsLoaded() doesn't actually indicate whether or not the
mempool was successfully, loaded, but rather if a load has been
attempted and did not result in a catastrophic ShutdownRequested.
-BEGIN VERIFY SCRIPT-
find_regex="\bm_is_loaded\b" \
&& git grep -l -E "$find_regex" \
| xargs sed -i -E "s@$find_regex@m_load_tried@g"
find_regex="\bIsLoaded\b" \
&& git grep -l -E "$find_regex" \
| xargs sed -i -E "s@$find_regex@GetLoadTried@g"
find_regex="\bSetIsLoaded\b" \
&& git grep -l -E "$find_regex" \
| xargs sed -i -E "s@$find_regex@SetLoadTried@g"
-END VERIFY SCRIPT-
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 6e37f59f2e..1abf641ed2 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -451,7 +451,7 @@ protected: void trackPackageRemoved(const CFeeRate& rate) EXCLUSIVE_LOCKS_REQUIRED(cs); - bool m_is_loaded GUARDED_BY(cs){false}; + bool m_load_tried GUARDED_BY(cs){false}; CFeeRate GetMinFee(size_t sizelimit) const; @@ -729,10 +729,10 @@ public: void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize = nullptr, CAmount* ancestorfees = nullptr) const; /** @returns true if the mempool is fully loaded */ - bool IsLoaded() const; + bool GetLoadTried() const; /** Sets the current loaded state */ - void SetIsLoaded(bool loaded); + void SetLoadTried(bool loaded); unsigned long size() const { |