def METHOD_NAME(self, monitor_id, poll_interval=0.1):
    while True:
        local_ledger = self.get_ledger_local()
        monitor = self.get_monitor(monitor_id)
        if int(monitor["next_block"]) >= int(local_ledger["block_count"]):
            break
        time.sleep(poll_interval)