Module sync

Module sync 

Source
Expand description

Entrypoint for sync engine

Structs§

ScanRange
A range of blocks to be scanned, along with its associated priority.
SyncResult
Returned when crate::sync::sync successfully completes.
SyncStatus
A snapshot of the current state of sync. Useful for displaying the status of sync to a user / consumer.

Enums§

ScanPriority
Scanning range priority levels.

Functions§

add_scan_targets
API for targetted scanning.
reset_spends
Resets the spending transaction field of all outputs that were previously spent but became unspent due to a spending transactions becoming invalid.
scan_pending_transaction
Scans a pending transaction of a given status, adding to the wallet and updating output spend statuses.
sync
Syncs a wallet to the latest state of the blockchain.
sync_status
Creates a self::SyncStatus from the wallet’s current crate::wallet::SyncState.