HelixNetwork / pendulum

Pendulum is a distributed messaging protocol that enables globally available tamper proof timestamps :hourglass_flowing_sand:
https://dev.hlx.ai
Other
10 stars 6 forks source link

Refactor solidification into events #229

Open dzhelezov opened 4 years ago

dzhelezov commented 4 years ago

Currently solidification is based on a polling model, so that the tangle is traversed in a background thread. The suggested refactoring is to replace the polling approach with a reactive model. Once a new transaction is solidified, a new event is fired, and all the respective transactions (children) will update their solidification status based on listening on the solidification event.