FluffyLabs / FluffyLabs/typeberry

Optimize announcement sending

Open
#527 0 comments 0 reactions 0 assignees View on GitHub
M-networking
Dominant language
TypeScript
Stars
10
Forks
0
PR merge metrics
No merged PRs in 30d

Description

As mentioned [in #452](https://github.com/FluffyLabs/typeberry/pull/452/files#diff-9f18692e272c61b0c03e352a0f06c7ec2633a9eaecd9e470f4930a1075f5ccc4R218-R220) we currently gossip announcements to all connected peers, which is pretty redundant.

Instead we should only send the announcement to peers that don't know about that block yet. Since we already track (in `SyncAux`) what's the best block the peer has, we can check if it's better or worse (or on a different fork?) than the block we are announcing.

Secondly, we can consider sending the block announcement before we fully import the block (run full STF). That's the intended behaviour that's described in GP.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.