lotus/chain/events
Ian Davis 696469aae7
fix: avoid potential hang when starting event listener
It was possible for NewEvents to never return, blocked on waiting for a WaitGroup to be done.
The call to Done was in a goroutine that could exit before reaching the Done call.

Replace the WaitGroup with a channel that is closed to signal that initialisation is complete.
Also, while we are waiting on the channel, wait on the context so we can exit clealy if the
context is canceled.
2020-12-09 11:29:48 +00:00
..
state polish: add DeffAddressMap method to init wrapper 2020-11-16 11:45:25 -08:00
events_called.go refactor: simplify chain event Called API 2020-10-30 14:00:32 +01:00
events_height.go Merge branch 'master' into inmem-journal 2020-09-14 12:17:45 +01:00
events_test.go refactor: simplify chain event Called API 2020-10-30 14:00:32 +01:00
events.go fix: avoid potential hang when starting event listener 2020-12-09 11:29:48 +00:00
tscache_test.go Update to specs v0.9.6 2020-09-07 15:48:41 -04:00
tscache.go fix a race in tipset cache usage 2020-10-09 17:32:45 -07:00
utils.go refactor: simplify chain event Called API 2020-10-30 14:00:32 +01:00