Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/security / / pruneAudit

Function: pruneAudit() ​

ts
function pruneAudit(db, options): Promise<PruneAuditResult>;

Defined in: packages/security/src/audit/prune.ts:101

Stable

Drop entries older than before, leaving at least retain entries. Maintains the chain integrity by rewriting the first surviving entry's prevHash to the genesis value.

Parameters ​

ParameterType
dbAuditDb
optionsPruneAuditOptions

Returns ​

Promise&lt;PruneAuditResult&gt;