pub async fn sync_store( peer: &Peer, store: &DataStore, last_height: Option<u32>, last_header_hash: Bytes32, with_history: bool, ) -> Result<SyncStoreResponse>
Synchronizes a datastore (Rust API version).