Structsยง
- Install
Lock ๐
Enumsยง
- Zcashd
Binary Source - Effective
zcashdsource after local-path overrides are applied.
Constantsยง
- INSTALL_
LOCK_ ๐RETRY_ DELAY - INSTALL_
LOCK_ ๐WAIT_ TIMEOUT - Maximum time a process waits for another live process to finish a managed install.
- LEGACY_
INSTALL_ ๐LOCK_ STALE_ AFTER - Stale age for legacy lock files that do not contain owner metadata.
- MANAGED_
DOWNLOAD_ ๐MAX_ BYTES - Upper bound on a managed zcashd archive download, in bytes.
- MANAGED_
DOWNLOAD_ ๐TIMEOUT - Maximum time a managed archive download is allowed to take.
Functionsยง
- acquire_
lock ๐ - Acquires an exclusive lock file, retrying until
timeout. - cached_
managed_ ๐zcashd_ binary_ is_ present - Returns whether a cached managed zcashd binary exists for this target with
a provenance marker recording the manifest-pinned archive digest, or
Nonewhen managed downloads are unsupported for this target. - download_
archive ๐ - Downloads one managed release archive to
out. - effective_
zcashd_ source - Resolves the effective source for
zcashd. - extract_
archive_ ๐member_ to_ path - Extracts a single archive member into
destination. - lock_
file_ ๐is_ older_ than - lock_
owner_ ๐pid - make_
executable ๐ - Makes
pathexecutable on Unix targets. - managed_
zcashd_ ๐binary_ path - Returns the managed zcashd binary cache path without creating directories,
or
Nonewhen managed downloads are unsupported for this target. - managed_
zcashd_ ๐cache_ dir - normalize_
member_ ๐path - Normalizes archive entry paths for stable matching.
- process_
is_ ๐running - provenance_
content ๐ - Returns the provenance marker content for a verified extraction: the manifest-pinned archive digest and the digest of the extracted binary.
- provenance_
matches ๐ - Returns
trueif the provenance marker atpathrecords exactly the manifest-pinnedexpected_archive_sha256, and the binary atbinary_pathstill hashes to the recorded binary digest. - remove_
stale_ ๐lock - resolve_
managed_ zcashd_ binary - Resolves the managed zcashd binary from the embedded release manifest.
- resolve_
managed_ ๐zcashd_ binary_ from_ manifest - resolve_
zcashd_ binary_ path - Resolves and validates the
zcashdexecutable path. - sha256_
hex_ ๐file - Computes the lowercase hex SHA256 digest for
path. - write_
install_ ๐lock_ owner - zcashd_
target_ triple - Returns the current platform target triple used for managed release lookups.