sync

fun sync(blockchain: Blockchain, progress: Progress?)

Sync the internal database with the blockchain.