Skip to content

Commit

Permalink
Broadcast block at AppendBlocksAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
limebell committed Sep 4, 2019
1 parent 9668bd1 commit 037f6db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libplanet/Net/Swarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1452,8 +1452,6 @@ private async Task ProcessBlockHashes(
$"Append failed during {nameof(ProcessBlockHashes)}() due to exception: {e}");
throw;
}

BroadcastBlocks(blocks);
}

private async Task<BlockChain<T>> SyncPreviousBlocksAsync(
Expand Down Expand Up @@ -1608,6 +1606,8 @@ CancellationToken cancellationToken
_blockChain.Swap(previousBlocks, render: true);
_logger.Debug("Swapping complete");
}

BroadcastBlocks(blocks);
}
else
{
Expand Down

0 comments on commit 037f6db

Please sign in to comment.