metacraft-labs / DendrETH

A smart contract implementation of the Ethereum light client sync protocol
GNU General Public License v3.0
45 stars 9 forks source link

Make commitment mapper use publish/subscribe instead of needs_change #269

Open Dimo99 opened 10 months ago

Dimo99 commented 10 months ago

Currently, we have this needs_change flag, and when it is false, the program sleeps for a certain timeout. What we can do is subscribe to it being changed, and every time someone computes proof, they will notify of that.