transparency-dev / trillian-tessera

Go library for building tile-based transparency logs (tlogs)
Apache License 2.0
11 stars 11 forks source link

Wrapper for Add to block until leaf is integrated #294

Closed mhutchinson closed 2 weeks ago

mhutchinson commented 2 weeks ago

The core of this new functionality is a loop that polls for new checkpoints peridiodically. Client code that calls Await will block until this polling loop finds a checkpoint that is bigger than the index being awaited, at which point it releases the client and provides it with the checkpoint and the index.

This fixes #193.