Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Conversation

@joecaswell
Copy link
Contributor

deduplicate block send code
fixes #1273 depends on helium/proto#125

deduplicate block send code
update rebar.lock depends on helium/proto#125
@joecaswell joecaswell requested review from Vagabond and evanmcc March 15, 2022 02:27
HighestPlausible ->
lager:info("Eagerly re-gossiping ~p", [blockchain_block:height(HighestPlausible)]),
blockchain_gossip_handler:regossip_block(HighestPlausible, SwarmTID),
case Final of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So one thing we'd know now is that if we see the Final flag but we haven't seen the block with GossipedHash we know that this peer has more blocks (or that more blocks exist generally) and we can keep syncing immediately?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which I guess is something you'd call back into the blockchain_worker to before you {stop, normaled below

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When sending final block sync bundle, indicate if the last batch of blocks is 'final'

3 participants