Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sync & storage]Failed block storage #1786

Merged
merged 8 commits into from
Dec 10, 2020
Merged

[sync & storage]Failed block storage #1786

merged 8 commits into from
Dec 10, 2020

Conversation

tiangong3624749
Copy link
Contributor

No description provided.

@tiangong3624749 tiangong3624749 added this to the starcoin-0.9.1 milestone Dec 9, 2020
@tiangong3624749 tiangong3624749 linked an issue Dec 9, 2020 that may be closed by this pull request
storage/src/block/mod.rs Show resolved Hide resolved
sync/src/tasks/block_sync_task.rs Outdated Show resolved Hide resolved
block_connector_service.notify(PeerNewBlock::new(peer_id, block))?;
let block_id = compact_block.header.id();
if let Ok(Some(_)) = txpool.get_store().get_failed_block_by_id(block_id) {
debug!("Block is failed block : {:?}", block_id);
Copy link
Member

Choose a reason for hiding this comment

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

感觉这种日志可以打个 warning。

@jolestar jolestar merged commit a8d4dbb into master Dec 10, 2020
@jolestar jolestar deleted the failed_block_storage branch December 10, 2020 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed block
2 participants