diff options
author | Carl Dong <contact@carldong.me> | 2022-06-30 23:10:55 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-08-03 12:02:31 -0400 |
commit | 08dbc6ef72db48168dc03991f5f838dae42c8dfd (patch) | |
tree | f78f5551eea5874f068a05f3bbab1a9563f01493 /src/validation.h | |
parent | 0dbce4b1034b53d19b88af332385a006098b6d48 (diff) | |
download | bitcoin-08dbc6ef72db48168dc03991f5f838dae42c8dfd.tar.xz |
cuckoocache: Return approximate memory size
Returning the approximate total size eliminates the need for
InitS*Cache() to do nElems*sizeof(uint256). The cuckoocache has a better
idea of this information.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index df9146852f..92ade4cf94 100644 --- a/src/validation.h +++ b/src/validation.h @@ -323,7 +323,7 @@ public: }; /** Initializes the script-execution cache */ -void InitScriptExecutionCache(); +[[nodiscard]] bool InitScriptExecutionCache(); /** Functions for validating blocks and updating the block tree */ |