Load into writer the SHA256 midstate if found in this cache.
Declared in <script/interpreter.h>
[[nodiscard]]
bool
Load(
int32_t hash_type,
CScript const& script_code,
HashWriter& writer) const noexcept;
true if a matching midstate was found and loaded.
The return value should not be discarded.
| 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. |