darwinia-network / bridger

Relayer client implementation for Darwinia LCMP protocols.
https://rust-docs.darwinia.network/bridger
GNU General Public License v3.0
11 stars 10 forks source link

s2s: bridge is running, but don't submit headers. #299

Closed xiaoch05 closed 2 years ago

xiaoch05 commented 2 years ago

Test on pangoro<>pangolin. The bridge is running. But cannot find it submit headers from pangoro to pangolin. Even restart, it doesn't work. The latest submission is about 10 hours ago.

Screen Shot 2021-10-27 at 10 47 43 AM

.

fewensa commented 2 years ago

A possible reason:

If the validator is not enough, no authorities change record will be generated.

https://github.com/darwinia-network/parity-bridges-common/blob/7be2b478b49bc8e87ddfe034076e9e80e2f126f6/relays/finality/src/finality_loop.rs#L462-L463

Then, a mandatory block will not be found here.

hackfisher commented 2 years ago

won't fix recently, expected to no longer exist if replaced by subquery.

And if there is no new authorities change, and no mandatory block, the bridger will have to query from node for grandpa justification (depend on node settings, node will store justification every 500 blocks?)