Blockchain calls sync logic rather than the other way around. Sync logic is captured in script_sync.rs.