[#SigHashCache-Load] = xref:SigHashCache.adoc[SigHashCache]::Load :relfileprefix: ../ :mrdocs: Load into writer the SHA256 midstate if found in this cache. == Synopsis Declared in `<script/interpreter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool Load( int32_t hash_type, xref:CScript.adoc[CScript] const& script_code, xref:HashWriter.adoc[HashWriter]& writer) const noexcept; ---- == Return Value `true` if a matching midstate was found and loaded. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#