pub async fn get_ops_to_publish<AuthorDb>(
    agent: AgentPubKey,
    db: &AuthorDb
) -> WorkflowResult<Vec<(OpBasis, OpHashSized, DhtOp)>>
where AuthorDb: ReadAccess<DbKindAuthored>,
Expand description

Get all dht ops on an agents chain that need to be published.

  • Don’t publish private entries.
  • Only get ops that haven’t been published within the minimum publish interval
  • Only get ops that have less then the RECEIPT_BUNDLE_SIZE