Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix _last_sent_block_id #6152

Merged
merged 1 commit into from
Oct 26, 2018
Merged

fix _last_sent_block_id #6152

merged 1 commit into from
Oct 26, 2018

Conversation

fingera
Copy link
Contributor

@fingera fingera commented Oct 26, 2018

Fix sync block
bnet_plugin cannot sync block?
this commit make it work correctly when syncing blocks.
_last_sent_block_id initialized to 0.
I think It's not forked.

if( nextblock->previous != _last_sent_block_id ) {
if( !is_known_by_peer( nextblock->previous ) ) {
_last_sent_block_id = _local_lib_id;
_last_sent_block_num = _local_lib;
_state = idle_state;
maybe_send_next_message();
return;
}
}

@heifner heifner merged commit 69dee07 into EOSIO:develop Oct 26, 2018
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.

2 participants