Skip to content

nooschain v0.1.0


nooschain / node-sync/trusted-peers / updatePeerSyncState

Function: updatePeerSyncState()

updatePeerSyncState(db, args): Promise<void>

Defined in: node-sync/trusted-peers.ts:125

Records the latest sync outcome for one trusted peer.

Parameters

db

ChainDatabase

args

error?

string | null

lastSyncedHeight?

string | null

peerId

string

status

string

Returns

Promise<void>

Audience-first NOOSChain documentation.