Load into writer the SHA256 midstate if found in this cache.
Synopsis
Declared in <script/interpreter.h>
[[nodiscard]]
bool
Load(
int32_t hash_type,
CScript const& script_code,
HashWriter& writer) const noexcept;
Return Value
true if a matching midstate was found and loaded.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
hash_type |
The sighash type selecting the cache entry. |
script_code |
The scriptCode the cached midstate must match. |
writer |
Receives the cached SHA256 midstate on a hit. |
Created with MrDocs