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

sync from block vault during block production #9752

Merged
merged 6 commits into from
Dec 7, 2020

Conversation

huangminghuang
Copy link
Contributor

Change Description

This PR allows nodeos to sync with block vault when it doesn't receive the required block from peer logical producer node within 1 second.

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
try {
_impl->blockvault->sync(&id, *this);
} catch( fc::exception& er ) {
wlog("Attempting to resync from blockvault encountered ${details}; the node must restart to "
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be fc_wlog.

Copy link
Contributor

Choose a reason for hiding this comment

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

You missed:
line 326 dlog.
line 341 elog

Not sure if this was intentional.

plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
# Conflicts:
#	tests/blockvault_tests.py
@huangminghuang huangminghuang merged commit 56d9c78 into develop Dec 7, 2020
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.

3 participants