hyperledger-labs / SmartBFT

Implementation of the SmartBFT consensus library (https://arxiv.org/abs/2107.06922)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make request pool use a scheduler

tock-ibm opened this issue · comments

have a ticker emit time into a channel, and another thread read the time and scan events for deadline.

Possible advantage - better control of timing in tests, we can speed-up or slow down time as we wish.

On the other hand this is more complicated, and has no clear benefit in production.

This can be applied to both RequestPool and Heartbeat monitor.

See #109 and discussion on #240

Update: Now the heartbeat monitor uses a time channel, and all we are left is to make the request pool use a scheduler.