palomachain / paloma

The fast blockchain messenger protocol
Apache License 2.0
290 stars 136 forks source link

fix: withold gravity batches until valset update #1195

Closed byte-bandit closed 2 months ago

byte-bandit commented 2 months ago

Related Github tickets

Background

This change adds a new constraint when handing out gravity batches to be relayed. They will now be withheld while valset updates are pending on the target chain, just like with SLC. I had to cut some corners to get this out sooner rather than later, but I also added a more decentralised event bus system for decoupling systems. It's currently very bare bone and as singleton hard to test, but if it grows, we can refactor into something more injectible.

Testing completed

Breaking changes