Skip to content

Commit

Permalink
Update sync status (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano54 authored Mar 13, 2021
1 parent 2d0b5ef commit 0be31f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wallet/wallet_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ async def complete_blocks(self, header_blocks: List[HeaderBlock], peer: WSChiaCo
if not self.wallet_state_manager.sync_mode:
self.wallet_state_manager.blockchain.clean_block_records()
self.wallet_state_manager.state_changed("new_block")
self.wallet_state_manager.state_changed("sync_changed")
elif result == ReceiveBlockResult.INVALID_BLOCK:
self.log.info(f"Invalid block from peer: {peer.get_peer_info()} {error}")
await peer.close()
Expand Down

0 comments on commit 0be31f7

Please sign in to comment.