nooschain / payload-backfill/backfill-service / BackfillPayloadsFromPeerOptions
Interface: BackfillPayloadsFromPeerOptions
Defined in: payload-backfill/backfill-service.ts:58
Options for one backfill attempt against one trusted peer.
Properties
db
db:
Kysely<Database>
Defined in: payload-backfill/backfill-service.ts:60
Local database whose encrypted-record availability rows may be updated.
dbUpdateBatchSize?
optionaldbUpdateBatchSize?:number
Defined in: payload-backfill/backfill-service.ts:72
Number of verified payload rows per local DB update statement.
force?
optionalforce?:boolean
Defined in: payload-backfill/backfill-service.ts:74
When true, bypass peer-score quarantine/ban checks for operator-forced recovery.
httpBatchSize?
optionalhttpBatchSize?:number
Defined in: payload-backfill/backfill-service.ts:70
Number of record ids per peer batch request, capped by the 100-record API contract.
limit?
optionallimit?:number
Defined in: payload-backfill/backfill-service.ts:66
Maximum missing records to consider when recordIds is omitted.
localNodeId
localNodeId:
string
Defined in: payload-backfill/backfill-service.ts:64
Local node id used for replication-policy and bucket-permission checks.
localNodePrivateKey?
optionallocalNodePrivateKey?:string
Defined in: payload-backfill/backfill-service.ts:80
Local node private key used to sign payload request challenges.
logger?
optionallogger?:OperationalLogger
Defined in: payload-backfill/backfill-service.ts:76
Optional operational logger for progress and per-record failures.
membershipCredential?
optionalmembershipCredential?:object
Defined in: payload-backfill/backfill-service.ts:78
Signed credential proving the local node belongs to its claimed organization.
credentialId?
optionalcredentialId?:string
expiresAt
expiresAt:
string=isoDateSchema
issuedAt
issuedAt:
string=isoDateSchema
issuer
issuer:
string
nodeId
nodeId:
string
nodePublicKey
nodePublicKey:
string
organizationId
organizationId:
string
permissions
permissions: (
"replicate"|"serve_payloads")[]
signature
signature:
string
onProgress?
optionalonProgress?: (event) =>void|Promise<void>
Defined in: payload-backfill/backfill-service.ts:82
Optional progress callback used by benchmarks, soak, and operator diagnostics.
Parameters
event
details?
Record<string, unknown>
peerId
string
peerNodeId
string
phase
string
Returns
void | Promise<void>
peer
peer:
SyncPeer
Defined in: payload-backfill/backfill-service.ts:62
Trusted peer used as the ciphertext source.
recordIds?
optionalrecordIds?:string[]
Defined in: payload-backfill/backfill-service.ts:68
Optional explicit record ids to fetch.